* repo.c (repo_emit_p): Robustify.
PR c++/22204
* g++.dg/rtti/repo1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102073
138bc75d-0d04-0410-961f-
82ee72b054a4
+2005-07-15 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/22204
+ * repo.c (repo_emit_p): Robustify.
+
2005-07-14 Daniel Berlin <dberlin@dberlin.org>
Fix PR c++/22452
else if (DECL_TINFO_P (decl))
type = TREE_TYPE (DECL_NAME (decl));
if (!DECL_TEMPLATE_INSTANTIATION (decl)
- && !CLASSTYPE_TEMPLATE_INSTANTIATION (type))
+ && (!TYPE_LANG_SPECIFIC (type)
+ || !CLASSTYPE_TEMPLATE_INSTANTIATION (type)))
return 2;
}
else if (!DECL_TEMPLATE_INSTANTIATION (decl))
+2005-07-15 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/22204
+ * g++.dg/rtti/repo1.C: New test.
+
2005-07-15 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/22398
--- /dev/null
+// PR c++/22204
+// { dg-options "-frepo" }
+
+#include <typeinfo>
+template<int>
+struct function1
+{
+ function1()
+ {
+ typeid(int[100]);
+ }
+};
+function1<1> b;
+
+int main () {}