http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43395
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Thu May 1 07:29:38 2014 New Revision: 209973 URL: http://gcc.gnu.org/viewcvs?rev=209973&root=gcc&view=rev Log: PR c/43395 c/ * c-typeck.c (c_finish_return): Distinguish between label and variable when warning about returning local address. cp/ * typeck.c (maybe_warn_about_returning_address_of_local): Distinguish between label and variable when warning about returning local address. testsuite/ * c-c++-common/pr43395.c: New test. Added: trunk/gcc/testsuite/c-c++-common/pr43395.c Modified: trunk/gcc/c/ChangeLog trunk/gcc/c/c-typeck.c trunk/gcc/cp/ChangeLog trunk/gcc/cp/typeck.c trunk/gcc/testsuite/ChangeLog