🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6164

Possible gcc bugs?

#6164
From: Bhyrava Prasad
Date: Wed, 20 Nov 1996 00:00
30 lines
1289 bytes
Hi , 
   I am using gcc to cross complile for 68k on a Sun. 
gcc --version says it is 2.7-96q1.
    Due to some error in cut and paste , I had a piece of code
similar to 
    void foo()
    {
      void foo()
      {
          int i;
        
          some_function(i);
          printf("hello world\n");
       }
     }

   And gcc compiled it just fine. Is this a bug? If not , what 
is happening? 

Also , due to another cut and paste , a newline got inserted in
a string constant and gcc did not complain , but took it as a 
\n in the string at that point. This seems inconsistent with
Microsoft C. Example
   #define WORLD "hello
          world"

Thanks

- BP
Technical Details
Message-ID: <3293AA98.6201DD56@cisco.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,24b2793880e68d18,start
X-Google-Attributes: gid113d02,public
From: prasadb@cisco.com (Bhyrava Prasad)
Subject: Possible gcc bugs?
Date: 1996/11/20
Message-ID: <3293AA98.6201DD56@cisco.com>
X-Deja-AN: 197740868
sender: bug-gcc-request@prep.ai.mit.edu
content-type: text/plain; charset=us-ascii
organization: cisco Systems, Incorporated
x-gateway: relay2.UU.NET from bug-gcc to gnu.gcc.bug; Wed, 20 Nov 1996 20:04:53 EST
mime-version: 1.0
newsgroups: gnu.gcc.bug
x-mailer: Mozilla 3.0 (X11; I; SunOS 4.1.4 sun4m)