This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/56167] ICE with invalid __attribute__ arguments
- From: "d.g.gorbachev at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 01 Feb 2013 16:21:58 +0000
- Subject: [Bug middle-end/56167] ICE with invalid __attribute__ arguments
- Auto-submitted: auto-generated
- References: <bug-56167-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56167
--- Comment #3 from Dmitry Gorbachev <d.g.gorbachev at gmail dot com> 2013-02-01 16:21:58 UTC ---
> No idea why you consider the rest as bugs.
The diagnostic messages are somewhat confusing. I believe that `weakref', by
analogy with `alias', should give:
bug.c:1:1: error: attribute 'weakref' argument not a string
And the same can be said about `section'.
In regard to `alloc_size', I think it could report something like:
1.c:1:1: error: 'alloc_size' parameter is not an integer constant
Needless to say, all these things are not of the utmost importance...