This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Solaris 8/Intel] cc chokes on inline static
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: [Solaris 8/Intel] cc chokes on inline static
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Date: Thu, 26 Apr 2001 00:12:26 +0100 (BST)
- cc: <robertlipe at usa dot net>, <dkorn at pixelpower dot com>, <gcc-patches at gcc dot gnu dot org>, <ro at TechFak dot Uni-Bielefeld dot DE>
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