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:
parent
dd9c642a8b
commit
0b93f014a7
|
@ -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>
|
2007-12-02 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
PR c++/34273
|
PR c++/34273
|
||||||
|
|
|
@ -3186,7 +3186,7 @@ current_template_args (void)
|
||||||
{
|
{
|
||||||
t = TREE_VALUE (t);
|
t = TREE_VALUE (t);
|
||||||
|
|
||||||
if (t != error_mark_node)
|
if (!error_operand_p (t))
|
||||||
{
|
{
|
||||||
if (TREE_CODE (t) == TYPE_DECL
|
if (TREE_CODE (t) == TYPE_DECL
|
||||||
|| TREE_CODE (t) == TEMPLATE_DECL)
|
|| TREE_CODE (t) == TEMPLATE_DECL)
|
||||||
|
|
|
@ -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>
|
2007-12-02 Paolo Carlini <pcarlini@suse.de>
|
||||||
|
|
||||||
PR c++/34273
|
PR c++/34273
|
||||||
|
|
|
@ -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" }
|
Loading…
Reference in New Issue