re PR c/43395 (Gcc warns label as local variable)
authorMarek Polacek <polacek@redhat.com>
Thu, 1 May 2014 07:29:38 +0000 (07:29 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 1 May 2014 07:29:38 +0000 (07:29 +0000)
commit32e007683d8eeb92afe99367049b28d27845dfc0
tree9c7ccefdbc81e75048751b6cf48297475c07ad64
parent944052b9aea27456bc0a29ce4bc14a81103936f5
re PR c/43395 (Gcc warns label as local variable)

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.

From-SVN: r209973
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/pr43395.c [new file with mode: 0644]