This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[C++, diagnostic] PR 34293


Hi all, hi Gaby,

I have the below patchlet for this simple PR. Tested x86_64-linux.

Ok for mainline?

Paolo.

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

        PR c++/34273
        * error.c (dump_decl): Handle TREE_BINFO.

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

        PR c++/34273
        * g++.dg/other/error21.C: New.
Index: testsuite/g++.dg/other/error21.C
===================================================================
*** testsuite/g++.dg/other/error21.C	(revision 0)
--- testsuite/g++.dg/other/error21.C	(revision 0)
***************
*** 0 ****
--- 1,8 ----
+ // PR c++/34273
+ 
+ struct A {};
+ 
+ struct B : A
+ {
+   B() : A()... {} // { dg-error "cannot expand" }
+ };
Index: cp/error.c
===================================================================
*** cp/error.c	(revision 130569)
--- cp/error.c	(working copy)
*************** dump_decl (tree t, int flags)
*** 956,961 ****
--- 956,962 ----
  
      case UNBOUND_CLASS_TEMPLATE:
      case TYPE_PACK_EXPANSION:
+     case TREE_BINFO:
        dump_type (t, flags);
        break;
  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]