From 717f805313d19641bf97400f1d6a9c8a6bbcb16e Mon Sep 17 00:00:00 2001 From: Volker Reichelt Date: Thu, 22 Jun 2006 09:28:02 +0000 Subject: 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/rtti.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc/cp') diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7f022ad..f666fab 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2006-06-22 Volker Reichelt + + PR c++/28109 + * rtti.c (get_tinfo_decl_dynamic): Robustify. + 2006-06-20 Volker Reichelt PR c++/28052 diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index 898db00..469ce51 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -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. */ -- cgit v1.1