<br><br>2008/4/9 Neil Booth <<a href="mailto:neil@daikokuya.co.uk">neil@daikokuya.co.uk</a>>:<br>> Doug Gregor wrote:-<br>>  <br>> <br>>  > On Tue, Apr 8, 2008 at 6:46 PM, Neil Booth <<a href="mailto:neil@daikokuya.co.uk">neil@daikokuya.co.uk</a>> wrote:<br>
>  > > Doug Gregor wrote:-<br>>  > ><br>>  > ><br>>  > >  > and, when in non-C99 mode, warns about this as an extension:<br>>  > >  ><br>>  > >  >   typedef void T;<br>
>  > >  >   void f(T);<br>>  > ><br>>  > >  Nothing special about C99 there, it must be accepted in C90 too.<br>>  ><br>>  > You're certain? EDG diagnoses this code with an extension warning in<br>
>  > it's C90 mode, and I can't find a copy of the C90 specification to<br>>  > verify (ISO doesn't sell it anymore).<br>>  <br>>  Yeah, it's DR 157 to C90.  EDG make several mistakes too :)<br>
>  <br>>  Neil.<br><br>Then the online Comeau demonstration does the same mistake.  Or it really is in the C90 standard (I'll admit not having a copy too).<br><br><span style="font-family: courier new,monospace;">Comeau C/C++ 4.3.9 (Mar 27 2007 17:24:47) for ONLINE_EVALUATION_BETA1</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Copyright 1988-2007 Comeau Computing.  All rights reserved.</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">MODE:strict errors C90noC++0x_extensions</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">"ComeauTest.c", line 2: error: declaring a void parameter list with a typedef is</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">          nonstandard</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  void f(T);</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">         ^</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">1 error detected in the compilation of "ComeauTest.c".<br>
<br style="font-family: arial,sans-serif;"><span style="font-family: arial,sans-serif;">Note that this passes in C99 mode.</span><br></span><br>> _______________________________________________<br>>  cfe-dev mailing list<br>
>  <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>>  <a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>>  <br><br><br><br>-- <br>
La brigade SnW veut vous recruter - <a href="http://brigade.snw.googlepages.com">http://brigade.snw.googlepages.com</a><br>