[Bug c++/34314] [4.3 Regression] ICE on invalid code (with variadic templates): tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in template_class_depth

dgregor at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Jan 15 18:09:00 GMT 2008



------- Comment #5 from dgregor at gcc dot gnu dot org  2008-01-15 18:00 -------
Subject: Bug 34314

Author: dgregor
Date: Tue Jan 15 17:59:44 2008
New Revision: 131546

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=131546
Log:
2008-01-15  Douglas Gregor  <doug.gregor@gmail.com>

       PR c++/34314
       * error.c (dump_simple_decl): Display ellipsis for template
       non-type parameter packs.
       (dump_decl): Display ellipsis for template type parameter packs.
       (dump_template_decl): Display ellipsis for template template
       parameter packs.
       * pt.c (redeclare_class_template): When redeclaring a class
       template, check for collisions between template parameters and
       template parameter packs.

2008-01-15  Douglas Gregor  <doug.gregor@gmail.com>

       PR c++/34314
       * g++.dg/cpp0x/vt-34314.C: New.
       * g++.dg/cpp0x/variadic79.C: Fix the error message to reflect
       reality (the error message was wrong previously).

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/vt-34314.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/error.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/g++.dg/cpp0x/variadic79.C


-- 


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



More information about the Gcc-bugs mailing list