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]

Re: [C++ Patch] PR 20461, PR 20536


... forgot the testcases, sorry. Would be:


// PR c++/20461
// { dg-do compile }

class C; // { dg-error "forward declaration" }

C::C() : f() {} // { dg-error "invalid use|does not have" }
// PR c++/20536
// Found by Wolfgang Wieser 03/2005.
// { do-do compile }
 
struct yyguts_t 
{ 
  class TestScanner* yyextra_r; // { dg-error "forward declaration" }
}; 
    
TestScanner::TestScanner() {} // { dg-error "invalid use" }

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