[Bug c++/35989] New: code rejected in template specialization (4.2 did accept)

debian-gcc at lists dot debian dot org gcc-bugzilla@gcc.gnu.org
Sun Apr 20 16:36:00 GMT 2008


[forwarded from http://bugs.debian.org/470850]

code is rejected by 4.3.1 20080420, accepted by 4.2.3

  The following code has three specializations of a template.
The third one compiles with g++-4.2 but gives an error with g++-4.3 :

vdanjean@cayuga:/tmp/toto$ g++-4.3 -Wall -c test.cpp 
test.cpp:30: error: template parameters not used in partial specialization:
test.cpp:30: error:         ‘T’
test.cpp:30: error:         ‘A’
vdanjean@cayuga:/tmp/toto$

It seems to me that my code is correct and g++-4.3 wrong: I really use T
and A in the partial specialization.


-- 
           Summary: code rejected in template specialization (4.2 did
                    accept)
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35989



More information about the Gcc-bugs mailing list