https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82600

--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Oct 19 14:24:39 2017
New Revision: 253899

URL: https://gcc.gnu.org/viewcvs?rev=253899&root=gcc&view=rev
Log:
        PR c++/82600
        * typeck.c (check_return_expr): Don't call
        maybe_warn_about_returning_address_of_local in templates.

        * g++.dg/warn/Wreturn-local-addr-4.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/warn/Wreturn-local-addr-4.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to