public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/1510
@ 2001-04-01  0:00 Foom
  0 siblings, 0 replies; only message in thread
From: Foom @ 2001-04-01  0:00 UTC (permalink / raw)
  To: neil; +Cc: gcc-prs

The following reply was made to PR c/1510; it has been noted by GNATS.

From: Foom <foom@fuhm.net>
To: gcc-gnats@gcc.gnu.org, neil@gcc.gnu.org
Cc:  
Subject: Re: c/1510
Date: Tue, 27 Feb 2001 19:17:52 -0500

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%26pr=1510%26database=gcc
 
 The correct file follows. The attachment seems to have been truncated 
 to the first line somehow.
 
 >>>>>>>>>>>>>
 
 void do_stuff();
 
 void break_gcc(int test)
 {
          if (undefined_variable)
                  exit(1);
 
          while(1)
          {
                  switch (test)
                  {
                          case 26:
                          case 10:
                          case 2:
                                  do_stuff();
                                  break;
 
                          case 4:
                          case 3:
                                  return;
                  }
          }
 }
 <<<<<<<<<<<<
 
 I haven't tested on gcc 3, but it still exists in gcc version 2.95.3 
 20010125 (prerelease).
 
 The output of gcc follows:
 $ gcc gccbug.c
 gccbug.c: In function `break_gcc':
 gccbug.c:5: `undefined_variable' undeclared (first use in this function)
 gccbug.c:5: (Each undeclared identifier is reported only once
 gccbug.c:5: for each function it appears in.)
 $ gcc -O1 gccbug.c
 gccbug.c: In function `break_gcc':
 gccbug.c:5: `undefined_variable' undeclared (first use in this function)
 gccbug.c:5: (Each undeclared identifier is reported only once
 gccbug.c:5: for each function it appears in.)
 gccbug.c:23: Internal compiler error in `build_insn_chain', at global.c:1756
 Please submit a full bug report.
 See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
 $ gcc -O2 gccbug.c
 gccbug.c: In function `break_gcc':
 gccbug.c:5: `undefined_variable' undeclared (first use in this function)
 gccbug.c:5: (Each undeclared identifier is reported only once
 gccbug.c:5: for each function it appears in.)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-04-01  0:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-01  0:00 c/1510 Foom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).