This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch] PR 20461, PR 20536
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>,Nathan Sidwell <nathan at codesourcery dot com>
- Date: Sun, 20 Mar 2005 11:43:00 +0100
- Subject: Re: [C++ Patch] PR 20461, PR 20536
- References: <423D5308.7030301@suse.de>
... 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" }