Commit e1283056 by Paolo Carlini Committed by Paolo Carlini

re PR c++/20461 (ICE at "class 'C' does not have any field named 'f'" error)

2005-03-21  Paolo Carlini  <pcarlini@suse.de>

	PR c++/20461
	* g++.dg/parse/crash24.C: New test.

	PR c++/20536
	* g++.dg/parse/crash25.C: New test.

2005-03-21  Paolo Carlini  <pcarlini@suse.de>

	PR c++/20147
	* g++.dg/ext/stmtexpr4.C: New test.

From-SVN: r96785
parent 72e4661a
2005-03-21 Paolo Carlini <pcarlini@suse.de>
PR c++/20461
* g++.dg/parse/crash24.C: New test.
PR c++/20536
* g++.dg/parse/crash25.C: New test.
2005-03-21 Paolo Carlini <pcarlini@suse.de>
PR c++/20147
* g++.dg/ext/stmtexpr4.C: New test.
2005-03-20 Roger Sayle <roger@eyesopen.com>
PR middle-end/20539
......
// PR c++/20147
// { dg-do compile }
// { dg-options "" }
void foo()
{
({x;}); // { dg-error "was not declared" }
}
// 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" }
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