Date: Thu, 14 May 1998 16:48:25 GMT Message-Id: <1.5.4.16.19980514164848.2e2ff3da@um2gess0> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com From: Michel JULIER Subject: BUG in gcc ? Precedence: bulk Thanks to Hans-Bernhard Broeker for helping me resolve my problem (about which I wrote a few hours ago). Here's my problem: When I compile this very simple "program": void a(void){ void b(void){} } int b; with gcc -g program.c I get the following message: d:/djgpp/tmp/RH1aaaaa/ccbag1ji: Assembler messages: d:/djgpp/tmp/RH1aaaaa/ccbag1ji:33: Fatal error: C_EFCN symbol out of scope I get that with gcc2.7.2.1 or gcc2.8.1, with as2.7.2.1 or as2.8.1, for DJGPP with MS-DOS 6.20 + Win3.11. I believe that nested functions are allowed, and shouldn't conflict with variables that are outside the main function. And gcc -Wall doesn't make any warning. Anyway, you don't get this message: -if you don't use the "-g" flag (and then, the program runs perfectly). -if you use gcc2.7.2 for sparc-sun-solaris2.5 or gcc2.7.2 for sparc-sun-sunos4.1.3 -if you use (gcc-2.7.2,binutils-2.6.0.14) for Linux (according to HB Broeker) So, I believe that this is a real bug. Am I the only one to see it? ---------- Michel JULIER, CNRS-Université Montpellier II, Montpellier, France