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]

Re: c++/4373


Hi,

here's a smaller testcase that crashes with gcc 3.0:

int f(int);

void g(int i)
{
  for (;;) {
    if (f(i)) break;
    int j = 0;
  }
}

void h()
{
  g(0);
}

Just compile with g++ -O3 -gdwarf-2 -c <filename>.

Greetings,
Volker Reichelt

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4373&database=gcc



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