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

2009-01-24 Thread jakub at gcc dot gnu dot org
--- Comment #3 from jakub at gcc dot gnu dot org 2009-01-24 21:36 --- Subject: Bug 38957 Author: jakub Date: Sat Jan 24 21:36:09 2009 New Revision: 143654 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143654 Log: PR c/38957 * c-typeck.c (c_finish_return): Handle

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

2009-01-24 Thread jakub at gcc dot gnu dot org
--- Comment #2 from jakub at gcc dot gnu dot org 2009-01-24 18:50 --- This regressed because of POINTER_PLUS_EXPR, which should be handled the same way as PLUS_EXPR in c_finish_return. I'll bootstrap/regtest the obvious patch. -- jakub at gcc dot gnu dot org changed: Wha

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

2009-01-24 Thread rguenth at gcc dot gnu dot org
--- Comment #1 from rguenth at gcc dot gnu dot org 2009-01-24 12:31 --- Confirmed. We appearantly never warned for the first case for C++. That may hint at what regressed it. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added