* rtti.c (get_tinfo_decl_dynamic): Robustify.
* g++.dg/rtti/incomplete1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@114882
138bc75d-0d04-0410-961f-
82ee72b054a4
+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
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.
--- /dev/null
+// PR c++/28109
+// { dg-do compile }
+
+#include <typeinfo>
+
+struct A;
+
+void foo()
+{
+ A a; // { dg-error "incomplete type" }
+ typeid (a);
+}