Commit 6f4434b3 by Mark Mitchell Committed by Mark Mitchell

re PR c++/22204 ([repo] internal compiler error: Segmentation fault)

	PR c++/22204
	* repo.c (repo_emit_p): Robustify.

	PR c++/22204
	* g++.dg/rtti/repo1.C: New test.

From-SVN: r102073
parent 88b52242
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
......
......@@ -285,7 +285,8 @@ repo_emit_p (tree decl)
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
......
// PR c++/22204
// { dg-options "-frepo" }
#include <typeinfo>
template<int>
struct function1
{
function1()
{
typeid(int[100]);
}
};
function1<1> b;
int main () {}
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