delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/14/10:54:22

Date: Thu, 14 May 1998 16:48:25 GMT
Message-Id: <1.5.4.16.19980514164848.2e2ff3da@um2gess0>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
From: Michel JULIER <julier AT GES DOT univ-montp2 DOT fr>
Subject: BUG in gcc ?

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019