This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Is this a bug in gcc??
- From: Name lastlong <brew_pt at yahoo dot com>
- To: Eljay Love-Jensen <eljay at adobe dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 1 Dec 2004 05:29:26 -0800 (PST)
- Subject: Re: Is this a bug in gcc??
Hi Eljay Love-Jensen,
Thanks a lot for ur reply.
I understand it this time. :)
Regards,
Brew.
--- Eljay Love-Jensen <eljay@adobe.com> wrote:
> Hi Name lastlong,
>
> >But don't you think that C compiler (gcc) also
> output this error?
>
> It's not an error in C, therefore a C compiler would
> be non-compliant to
> the C standard if it produced an error. (And it
> would break a lot of
> correct code.)
>
> >My observation is gcc outputs error only if we try
> to initialise both
> instant of "a".
>
> In C, there is only one instance of "a".
>
> Stroustrup talks about C/C++ incompatibility in his
> C++ Programming
> Language (3rd and Special editions) on B.2.2.
>
> HTH,
> --Eljay
>
>
__________________________________
Do you Yahoo!?
The all-new My Yahoo! - What will yours do?
http://my.yahoo.com