Commit 0b93f014 by Paolo Carlini Committed by Paolo Carlini

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
parent dd9c642a
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
* error.c (dump_decl): Handle TREE_BINFO.
......
......@@ -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)
......
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
* g++.dg/other/error21.C: New.
// 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" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment