Commit 717f8053 by Volker Reichelt Committed by Volker Reichelt

re PR c++/28109 (ICE with typeid of incomplete type)

	PR c++/28109
	* rtti.c (get_tinfo_decl_dynamic): Robustify.

	* g++.dg/rtti/incomplete1.C: New test.

From-SVN: r114882
parent 1f444077
2006-06-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/28109
* rtti.c (get_tinfo_decl_dynamic): Robustify.
2006-06-20 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/28052
......
......@@ -228,7 +228,7 @@ get_tinfo_decl_dynamic (tree exp)
tree type;
tree t;
if (exp == error_mark_node)
if (error_operand_p (exp))
return error_mark_node;
/* peel back references, so they match. */
......
2006-06-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/28109
* g++.dg/rtti/incomplete1.C: New test.
2006-06-21 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/loop_unchecked_conversion.ad[bs]: New test.
// PR c++/28109
// { dg-do compile }
#include <typeinfo>
struct A;
void foo()
{
A a; // { dg-error "incomplete type" }
typeid (a);
}
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