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]

Re: optimization/7507: [3.2/3.3 regression] ICE (segfault) with -O2


Hi again,

a distilled testcase is the following:

---------------------snip here---------------------
void foo (int i);

inline void bar () { return; }

void baz (int (*p)(), void* q)
{
  if (&p==q) foo( (bar(),p) () );
}
---------------------snip here---------------------

Compilation with gcc 3.1 - 3.2.1 on i686-pc-linu-gnu yields:

PR7507.i: In function `baz':
PR7507.i:8: internal error: Segmentation fault
Please submit a full bug report, [etc.]

The bug seems to be target specific, since I cannot reproduce it on
mips-sgi-irix6.5.

Regards,
Volker

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7507



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