[Bug c/38957] [4.3 Regression] return of local variable pointer

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Apr 20 14:11:00 GMT 2010



------- Comment #8 from rguenth at gcc dot gnu dot org  2010-04-20 14:10 -------
Subject: Bug 38957

Author: rguenth
Date: Tue Apr 20 14:09:52 2010
New Revision: 158559

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158559
Log:
2010-04-20  Richard Guenther  <rguenther@suse.de>

        Backport from mainline
        2009-01-24  Jakub Jelinek  <jakub@redhat.com>

        PR c/38957
        * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
        as PLUS_EXPR.

        * gcc.dg/pr38957.c: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr38957.c
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/c-typeck.c
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38957



More information about the Gcc-bugs mailing list