return void from void function is allowed.

Igor Bukanov igor.bukanov@gmail.com
Tue Oct 31 20:29:00 GMT 2006


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



More information about the Gcc mailing list