------- Comment #1 from pinskia at gcc dot gnu dot org 2007-02-14 18:35 ------- I think the warning from the front-end can be removed as the middle-end can warn with execute_warn_function_return.
Plus I think this is really a dup of bug 12603. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30794