[LLVMbugs] [Bug 18127] New: misparse of 'new struct S < ...' where S is not a template-name

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 3 19:19:14 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=18127

            Bug ID: 18127
           Summary: misparse of 'new struct S < ...' where S is not a
                    template-name
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Clang rejects this valid code:

  struct S {};
  bool b = new struct S<0;

We need to actually check whether the name in a tag is a template-name before
trying to parse it as a simple-template-id.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131204/7928fb7a/attachment.html>


More information about the llvm-bugs mailing list