The following code prints a warning: cat > test.cpp <<EOF template <class T> int foo() { throw 0; } EOF g++ -c -Wall test.cpp test.cpp: In function `int foo()': test.cpp:2: warning: no return statement in function returning non-void This code compiles fine with gcc-3.3.1, so it's a regression.
This is a dup of bug 11725. *** This bug has been marked as a duplicate of 11725 ***