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]

return void from void function is allowed.


GCC 4.1.2 and 4.0.3 incorrectly accepts the following program:

void f();

void g()
{
   return f();
}

No warning are issued on my Ubuntu Pentium-M box. Is it a known bug?

Regards, Igor


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