------- Comment #3 from hjl dot tools at gmail dot com  2009-01-29 20:09 -------
(In reply to comment #2)
> If you use -std=c99 -pedantic-errors you get an error, as expected.  
> You're compiling in gnu89 mode.
> 
> If you use -std=c99 without -pedantic-errors you get a duplicate warning:
> 
> t.c:1: warning: inline function 'foo' declared but never defined
> t.c:1: warning: inline function 'foo' declared but never defined
> 

So the code is valid in gnu89 mode, which is the default. With -std=c99
and without -pedantic-errors, shouldn't we generate working binary?


-- 


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

Reply via email to