This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17054] New: internal compiler error: in make_decl_rtl, at varasm.c:752


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);
}

-- 
           Summary: internal compiler error: in make_decl_rtl, at
                    varasm.c:752
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: florent dot gallet at orange dot fr
                CC: gcc-bugs at gcc dot gnu dot org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]