[forwarded from http://bugs.debian.org/319309] regression from 3.4, fixed in 4.1 Compile the attached example source code with: g++ -Wall -O3 -c bug.cc g++ produces the warning: bug.cc:9: warning: control may reach end of non-void function 'char* f(char*)' being inlined This is wrong, as should be obvious, since every possible control path in f() either leads to a return or a throw. g++ 3.x correctly analyses the code and does not generate a warning.
Created attachment 9323 [details] testcase
This was already decided against being fixed for 4.0.x series.