This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/37874] gcc sometimes accepts attribute in identifier list
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Oct 2008 01:51:00 -0000
- Subject: [Bug c/37874] gcc sometimes accepts attribute in identifier list
- References: <bug-37874-6809@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from joseph at codesourcery dot com 2008-10-20 01:51 -------
Subject: Re: gcc sometimes accepts attribute in identifier list
On Mon, 20 Oct 2008, sabre at nondot dot org wrote:
> It also accepts this:
> void f4(__attribute__(()));
This is documented in "Attribute Syntax". (The acceptance of empty
attributes, and only empty attributes, at the start of an identifier list,
is an implementation accident accurately carried over from the old parser
without noticing it was there, but also a bug.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37874