[Bug tree-optimization/38355] ICE with -fipa-struct-reorg
------- Comment #5 from reichelt at gcc dot gnu dot org 2009-11-14 21:21 -------
Confirmed.
Reduced testcase (crashes with "-O2 -fwhole-program -fipa-struct-reorg"):
=========================================================
template<int> struct A
{
char c;
void foo(int);
void bar(int i) { foo(i+1); }
};
template<int> struct B : virtual A<0> {};
template<int T> inline void baz(B<T>& b, int i)
{
if (i) b.bar(0);
}
extern template class A<0>;
extern template void baz(B<0>&, int);
int main()
{
B<0> b;
baz(b, 0);
return 0;
}
=========================================================
GCC 4.3.x and 4.4.x segfault, while trunk produced the following ICE:
bug.cc:23:1: internal compiler error: in build_data_structure, at
ipa-struct-reorg.c:3387
Please submit a full bug report, [etc.]
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-valid-code, monitored
Last reconfirmed|0000-00-00 00:00:00 |2009-11-14 21:21:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38355
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
You reported the bug, or are watching the reporter.
Reply to: