------- Comment #4 from chris at bubblescope dot net 2007-03-17 18:07 ------- Here is a minimal code example:
#include <new> int* get_ptr(void* ptr) { return new(ptr) int(); } Which gives (on my computer) /usr/include/c++/4.0.0/new: In function 'int* get_ptr(void*)': /usr/include/c++/4.0.0/new:94: warning: will never be executed But a similar problem exists in much of the templated code, and in general. The real problem I think here is that the system_header pragma is still broken for templates. If that was fixed, this warning would go away. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31246