Bug 17054

Summary: internal compiler error: in make_decl_rtl, at varasm.c:752
Product: gcc Reporter: Tarabiscote <florent.gallet>
Component: c++Assignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED DUPLICATE    
Severity: minor CC: gcc-bugs
Priority: P3 Keywords: ice-on-valid-code
Version: 3.4.1   
Target Milestone: ---   
Host: Target:
Build: Known to work:
Known to fail: Last reconfirmed:

Description Tarabiscote 2004-08-16 23:17:02 UTC
Well it's easy to make the prog work, but I still report it

To reproduce :

typedef struct tagS {
	long a;
	long b;
	long c;
} S;

int i;
S g(const S &);
S g();

int f()
{
    return 0;
}

S g(const S &toto)
{ // the error is here
	int h = f();
	S tata = {toto.a, toto.b, h};
	return tata;
}

S g()
{
	S toto;
	return g(toto);
}
Comment 1 Andrew Pinski 2004-08-17 00:15:44 UTC

*** This bug has been marked as a duplicate of 15461 ***