http://llvm.org/bugs/show_bug.cgi?id=16791
Bug ID: 16791
Summary: comma in default argument (template with 2+ types)
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
template<typename T1, typename T2>
struct Foo {};
struct Bar {
void f(Foo<int, int> = Foo<int, int>());
};
hello.cpp:5:40: error: expected ')'
void f(Foo<int, int> = Foo<int, int>());
^
hello.cpp:5:11: note: to match this '('
void f(Foo<int, int> = Foo<int, int>());
^
hello.cpp:5:35: error: expected '>'
void f(Foo<int, int> = Foo<int, int>());
^
2 errors generated.
--
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