[Bug objc/19321] [4.0 regression] objc ignores volatile in argument types for messages
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Mon Jan 10 20:31:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list