http://llvm.org/bugs/show_bug.cgi?id=7657
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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Created an attachment (id=5236)
--> (http://llvm.org/bugs/attachment.cgi?id=5236)
testcase
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs