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, Mar 31, 2009 at 4:24 PM, Bingfeng Mei <bmei@broadcom.com> wrote:
> Hello,
> I found the following code doesn't compile with gcc4.4. and -std=c99. Does this behaviour conform to standard?
>
> inline int foo(){
> ?return 10;
> }
>
> int main(int argc, char **argv){
> ?return foo();
> }

It works for me.  What is your error?

Richard.


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