[Bug libmudflap/22155] ICE with: "-fmudflap -D_GLIBCXX_DEBUG"

2005-06-23 Thread reichelt at gcc dot gnu dot org

--- Additional Comments From reichelt at gcc dot gnu dot org  2005-06-23 
11:52 ---
Btw, here's an even shorter testcase:


struct A
{
~A() { }
};

struct B
{
B(const A&, const A&);
int foo();
};

void bar(int, int);

void baz(int& i)
{
B b=B(A(),A());
bar(i,b.foo());
}



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22155


[Bug libmudflap/22155] ICE with: "-fmudflap -D_GLIBCXX_DEBUG"

2005-06-23 Thread reichelt at gcc dot gnu dot org

--- 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


[Bug libmudflap/22155] ICE with: "-fmudflap -D_GLIBCXX_DEBUG"

2005-06-22 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-23 
04:43 ---
I thought there was a bug about something like this before (and it was fixed 
too) but I cannot find it 
right now, maybe I am not looking hard enough.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22155