This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53723] New: [C++11] Variadic template specialisation fails
- From: "sethcarnegie at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 19 Jun 2012 17:10:16 +0000
- Subject: [Bug c++/53723] New: [C++11] Variadic template specialisation fails
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53723
Bug #: 53723
Summary: [C++11] Variadic template specialisation fails
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: sethcarnegie@gmail.com
Created attachment 27656
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27656
Example code
The code in the attached file, which should compile, does not. It fails with
the error:
test.cpp:6:5: error: template-id 'foo<int>' for 'int foo()' does not match any
template declaration
I compiled with the following command line:
g++ test.cpp -std=c++11 -Wall -Wextra -fno-strict-aliasing -fwrapv