[Solaris 8/Intel] cc chokes on inline static

Joseph S. Myers jsm28@cam.ac.uk
Wed Apr 25 16:13:00 GMT 2001


On Wed, 25 Apr 2001, Kaveh R. Ghazi wrote:

> What does c99 say with respect to ordering of static vs inline (and
> related tokens?)  Perhaps it should be warned about with -pedantic.
> 
> (Note -W already warns about "int static" vs "static int".)

"inline" is something new called a "function specifier" rather than a
storage class specifier.  Use of storage class specifiers other than at
the start of a declaration is obsolescent but still allowed in C99.  
Making the warning code aware of this difference is on the TODO list in my
C parser cleanup patch.

-- 
Joseph S. Myers
jsm28@cam.ac.uk



More information about the Gcc-patches mailing list