This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: gcc99 inlining rules


On Tue, 31 Mar 2009, Bingfeng Mei wrote:

> Hello, 
> I found the following code doesn't compile with gcc4.4. and -std=c99. 
> Does this behaviour conform to standard?

It does compile.  It may or may not link depending on compilation options, 
since you are missing an external definition for foo, so this is not a 
valid program without another translation unit with such a definition.

-- 
Joseph S. Myers
joseph@codesourcery.com


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