Article View: gnu.gcc.bug
Article #6174Re: Possible gcc bugs?
From: Mr. Jolt Cola
Date: Thu, 21 Nov 1996 00:00
Date: Thu, 21 Nov 1996 00:00
28 lines
1223 bytes
1223 bytes
> Bhyrava Prasad wrote:
> >
> > 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?
>
> No, it's not a bug. Your code is correct so why do you want gcc to
> complain ?
Nested functions are legal ANSI C? I never knew this.
Melvin Smith
Technical Details
Message-ID:
<9611211746.AA01271@quix.robins.af.mil>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,24b2793880e68d18 X-Google-Attributes: gid113d02,public From: "Mr. Jolt Cola" <msmith@quix.robins.af.mil> Subject: Re: Possible gcc bugs? Date: 1996/11/21 Message-ID: <9611211746.AA01271@quix.robins.af.mil> X-Deja-AN: 197904741 sender: bug-gcc-request@prep.ai.mit.edu content-type: text/plain; charset=US-ASCII x-gateway: relay6.UU.NET from bug-gcc to gnu.gcc.bug; Thu, 21 Nov 1996 14:17:40 EST mime-version: 1.0 newsgroups: gnu.gcc.bug x-mailer: ELM [version 2.4 PL24]