Hallo,
i stumbled over a curious behavior today, which i never saw in more than 15 years of usage of cpp compilers:
The following gets compiled without any error message by gpp 3.4.5 (from mingw, included in devcpp), where i normally would seriously expect an error message:
sometype funcname(sometype somearg)
{
do_something(somearg);
// NO RETURN-STATEMENT!
}
From Borland/MS/Watcom i have never seen such a thing possible: I had always have to do compiler specific stuff if i wanted - for any good reason like assembler inlines - such things to be compilable.
Ho is this to be interpreted? Is that a new feature from Ansi99?
Or is this a bug?
Or is this dependend from some special build-in features? And overridable on the command line?