re PR c++/34061 (ICE with template-template parameters and inheritance)

/cp
2007-12-02  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34061
        * pt.c (current_template_args): Use error_operand_p.

/testsuite
2007-12-02  Paolo Carlini  <pcarlini@suse.de>

        PR c++/34061
        * g++.dg/cpp0x/pr34061.C: New.

From-SVN: r130573
This commit is contained in:
Paolo Carlini 2007-12-02 19:47:18 +00:00 committed by Paolo Carlini
parent dd9c642a8b
commit 0b93f014a7
4 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-12-02 Paolo Carlini <pcarlini@suse.de>
PR c++/34061
* pt.c (current_template_args): Use error_operand_p.
2007-12-02 Paolo Carlini <pcarlini@suse.de>
PR c++/34273

View File

@ -3186,7 +3186,7 @@ current_template_args (void)
{
t = TREE_VALUE (t);
if (t != error_mark_node)
if (!error_operand_p (t))
{
if (TREE_CODE (t) == TYPE_DECL
|| TREE_CODE (t) == TEMPLATE_DECL)

View File

@ -1,3 +1,8 @@
2007-12-02 Paolo Carlini <pcarlini@suse.de>
PR c++/34061
* g++.dg/cpp0x/pr34061.C: New.
2007-12-02 Paolo Carlini <pcarlini@suse.de>
PR c++/34273

View File

@ -0,0 +1,5 @@
// PR c++/34061
// { dg-do compile }
// { dg-options "-std=c++0x" }
template<template<int> class ...T> struct A : T<0> {}; // { dg-error "not expanded|T" }