Possible GCC C parser bug
Toshi Morita
tm314159@yahoo.com
Sun Aug 28 07:49:00 GMT 2016
Thanks - much appreciated!
Toshi
----- Original Message -----
From: Markus Trippelsdorf <markus@trippelsdorf.de>
To: Toshi Morita <tm314159@yahoo.com>
Cc: "gcc-bugs@gcc.gnu.org" <gcc-bugs@gcc.gnu.org>
Sent: Friday, August 26, 2016 10:27 PM
Subject: Re: Possible GCC C parser bug
On 2016.08.27 at 07:17 +0200, Markus Trippelsdorf wrote:
> On 2016.08.26 at 20:43 +0000, Toshi Morita wrote:
> > Tried to create an account on Bugzilla, won't let me create an account.
> > So posting directly to the bugs list.
> >
> > cdecl says "const int const * pntr" is a syntax error.
> > GCC accepts the same construct without warning or error.
> > I suspect cdecl is correct.
> >
> > user@hp-nx9420:~$ cdecl
> > Type `help' or `?' for help
> > cdecl> const int const * pntr
> > syntax error
> > cdecl> quit
> > user@hp-nx9420:~$ cat test.c
> > const int const * pntr;
> > user@hp-nx9420:~$ gcc -Wall -S test.c
> > user@hp-nx9420:~$
>
> It is just a harmless duplicate type qualifier.
See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43651
--
Markus
More information about the Gcc-bugs
mailing list