[Bug c++/53723] New: [C++11] Variadic template specialisation fails

sethcarnegie at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Jun 19 17:10:00 GMT 2012


             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

More information about the Gcc-bugs mailing list