--- Additional Comments From reichelt at gcc dot gnu dot org 2005-06-23
11:35 ---
Confirmed.
Reduced testcase (compile with g++ -fmudflap):
==
struct A
{
~A() { }
};
struct B
{
B(const A&);
};
struct C
{
C(const B&, const A&);
B& foo();
};
void bar(int, B&);
void baz(int& i)
{
C c=C(B(A()),A());
bar(i,c.foo());
}
==
PR22155.cc: In function 'void baz(int&)':
PR22155.cc:19: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
The problem was fixed on mainline by the patch in PR 19266.
Marking as duplicate then.
Frank, the testcase here is much shorter than the committed one
and does not depend on optimization.
Should we add this one, too?
*** This bug has been marked as a duplicate of 19266 ***
--
What|Removed |Added
CC||fche at redhat dot com,
||reichelt at gcc dot gnu dot
||org
Status|UNCONFIRMED |RESOLVED
Keywords||ice-on-valid-code
Resolution||DUPLICATE
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22155