[LLVMbugs] [Bug 9936] New: Incorrect statement ambiguity resolution for declaration with template-id
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue May 17 11:50:43 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9936
Summary: Incorrect statement ambiguity resolution for
declaration with template-id
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: schaub.johannes at googlemail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
I think the following should be a local declaration of "A<int>" and be
ill-formed:
template<typename T>
int f();
int main() {
int(f<int>());
// same as:
// int f<int>();
}
Clang parses it as though it would be a functional cast.
--
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