This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug objc/19321] [4.0 regression] objc ignores volatile in argument types for messages


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]