This is the mail archive of the gcc-prs@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/1510


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.)


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