This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/19321] [4.0 regression] objc ignores volatile in argument types for messages
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jan 2005 20:30:58 -0000
- Subject: [Bug objc/19321] [4.0 regression] objc ignores volatile in argument types for messages
- References: <20050107225759.19321.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-10 20:30 -------
(In reply to comment #6)
Well consider the following code (which is basically PR 14050 which is suspended as we don't know if it
is valid code or not):
@interface Foo
-(void) quux: (int [__restrict])a;
@end
With the mainline we get only two error messages:
t.m:2: error: static or type qualifiers in abstract declarator
t.m:2: error: static or type qualifiers in non-parameter array declarator
But with 3.3.2, we get only one:
t.m:2: error: static or type qualifiers in abstract declarator
which is correct if this is consider invalid code. If this in later versions of gcc, we decide this is valid
code and we don't use grokdeclarator in the objc front-end, we will be still rejecting this instead of
getting this for free.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19321