------- Comment #3 from joseph at codesourcery dot com  2010-04-06 14:14 -------
Subject: Re:  add warning for duplicate qualifier

It is generally presumed that if a new feature is deliberately added in a 
new language version, as with duplicate qualifiers in C99, then it is 
useful for it to be allowed with previous versions and not diagnosed by 
default but only with -pedantic.  The possibility of generally being able 
to warn for C90/C99 compatibility issues whichever mode the compiler is in 
(-Wc90-c99-compat, say) is a separate issue.

I think the reason duplicate qualifiers are allowed in C99 is to allow you 
to use volatile with a typedef name without knowing whether that typedef 
already includes volatile, for example.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43651

Reply via email to