This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]