re PR c++/35242 (ICE with invalid specialization of variadic template)
authorPaolo Carlini <paolo.carlini@oracle.com>
Sun, 8 Jun 2008 21:25:49 +0000 (21:25 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Sun, 8 Jun 2008 21:25:49 +0000 (21:25 +0000)
commitc528571847d2d2c4b6478dac883951b540b18a9c
tree07d8336646903840ad629669ae3cfcc1cae53c3a
parentc427220a8caf5221617d92fd9e70a92d1f8ffe55
re PR c++/35242 (ICE with invalid specialization of variadic template)

/cp
2008-06-08  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/35242
        * pt.c (maybe_process_partial_specialization): Check the tree
returned by push_template_decl for error_mark_node.
* parser.c (cp_parser_class_head): Likewise, check the tree
returned by the latter.

/testsuite
2008-06-08  Paolo Carlini  <paolo.carlini@oracle.com>

        PR c++/35242
        * g++.dg/cpp0x/vt-35242.C: New.

From-SVN: r136569
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/vt-35242.C [new file with mode: 0644]