[LLVMbugs] [Bug 7657] New: template-id referenced without 'template' keyword

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 15 19:01:56 PDT 2010


           Summary: template-id referenced without 'template' keyword
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com

Created an attachment (id=5236)
 --> (http://llvm.org/bugs/attachment.cgi?id=5236)

The attached code contains the mischievous line:

  this->cast<bool>().template cast<bool>();

where I can't find any reason that the first 'cast' shouldn't need to have a
template keyword on it too. The full example is attached.

Clang permits it because it can clearly see that Foo has no dependent base
classes, but my understanding is that C++03 14.2/3 should apply as normal.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list