This is the mail archive of the gcc-patches@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]

Re: [Solaris 8/Intel] cc chokes on inline static


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


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