[LLVMbugs] [Bug 9566] New: Parenthesized id-expression in function parameter pack not allowed
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Mar 26 06:32:19 PDT 2011
http://llvm.org/bugs/show_bug.cgi?id=9566
Summary: Parenthesized id-expression in function parameter pack
not allowed
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: schaub.johannes at googlemail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Clang doesn't like this:
template<typename ...T>
void f(T (...t));
which is equivalent to
template<typename ...T>
void f(T ...t);
It says
main1.cpp:2:14: error: expected ')'
void f(T (...t)) { }
^
main1.cpp:2:10: note: to match this '('
void f(T (...t)) { }
^
main1.cpp:2:6: error: declaration type contains unexpanded parameter pack 'T'
void f(T (...t)) { }
^ ~
2 errors generated.
--
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