Commit c827f22f by Mark Mitchell Committed by Mark Mitchell

re PR c++/19149 (seg fault on invalid code)

	PR c++/19149
	* decl.c (check_tag_decl): Robustify.

	PR c++/19149
	* g++.dg/parse/error23.C: New test.

From-SVN: r92648
parent 51687431
2004-12-27 Mark Mitchell <mark@codesourcery.com>
PR c++/19149
* decl.c (check_tag_decl): Robustify.
2004-12-23 Mark Mitchell <mark@codesourcery.com>
PR c++/17595
......
......@@ -3514,7 +3514,8 @@ check_tag_decl (cp_decl_specifier_seq *declspecs)
return NULL_TREE;
}
if (TYPE_P (declspecs->type)
if (declspecs->type
&& TYPE_P (declspecs->type)
&& ((TREE_CODE (declspecs->type) != TYPENAME_TYPE
&& IS_AGGR_TYPE (declspecs->type))
|| TREE_CODE (declspecs->type) == ENUMERAL_TYPE))
......
2004-12-27 Mark Mitchell <mark@codesourcery.com>
PR c++/19149
* g++.dg/parse/error23.C: New test.
2004-12-27 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
* gfortran.dg/g77/f90-intrinsic-bit.f: New.
......
// PR c++/19149
struct QChar {
QChar( char c );
QChar( const QChar& c );
static const ; // { dg-error "" }
};
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