[Bug c++/57012] New: pretty-printer does not handle well template parameter packs

manu at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat Apr 20 12:28:00 GMT 2013


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

             Bug #: 57012
           Summary: pretty-printer does not handle well template parameter
                    packs
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: manu@gcc.gnu.org


/home/manuel/test3/src/gcc/testsuite/g++.dg/cpp0x/pr31432.C:2:40: error:
parameter pack '<template-parameter-1-1>' must be at the end of the template
parameter list
/home/manuel/test3/src/gcc/testsuite/g++.dg/cpp0x/pr31432.C:7:11: error:
type/value mismatch at argument 1 in template parameter list for
'template<<declaration error>, class> struct A'
/home/manuel/test3/src/gcc/testsuite/g++.dg/cpp0x/pr31432.C:7:11: error:  
expected a constant of type '<type error>', got 'int'
/home/manuel/test3/src/gcc/testsuite/g++.dg/cpp0x/pr31432.C:7:14: error:
invalid type in declaration before ';' token
/home/manuel/test3/src/gcc/testsuite/g++.dg/cpp0x/pr31432.C:8:11: error:
type/value mismatch at argument 1 in template parameter list for
'template<<declaration error>, class> struct A'
/home/manuel/test3/src/gcc/testsuite/g++.dg/cpp0x/pr31432.C:8:11: error:  
expected a constant of type '<type error>', got 'char'
/home/manuel/test3/src/gcc/testsuite/g++.dg/cpp0x/pr31432.C:8:14: error:
invalid type in declaration before ';' token

Clang++ by comparison:

/home/manuel/test3/src/gcc/testsuite/g++.dg/cpp0x/pr31432.C:2:10: error:
template parameter pack must be the last template parameter
template<typename..., typename> struct A // { dg-error "parameter pack" }
         ^



More information about the Gcc-bugs mailing list