[LLVMbugs] [Bug 16791] New: comma in default argument (template with 2+ types)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Aug 5 00:36:25 PDT 2013
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: unassignedclangbugs at nondot.org
Reporter: benthic at web.de
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130805/3a222362/attachment.html>
More information about the llvm-bugs
mailing list