[Bug c++/82600] [8 Regression] Address of local variable returned [-Werror=return-local-addr] when building mozilla-central

2017-10-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82600 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/82600] [8 Regression] Address of local variable returned [-Werror=return-local-addr] when building mozilla-central

2017-10-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82600 --- Comment #9 from Jakub Jelinek --- Author: jakub Date: Thu Oct 19 14:24:39 2017 New Revision: 253899 URL: https://gcc.gnu.org/viewcvs?rev=253899=gcc=rev Log: PR c++/82600 * typeck.c (check_return_expr): Don't call

[Bug c++/82600] [8 Regression] Address of local variable returned [-Werror=return-local-addr] when building mozilla-central

2017-10-18 Thread andi at mozilla dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82600 --- Comment #8 from Andi --- (In reply to Jonathan Wakely from comment #7) > (In reply to Andi from comment #0) > > Building firefox with gcc8 trunk i get this error: > > This is a warning, not an error. > > If you use -Werror to cause

[Bug c++/82600] [8 Regression] Address of local variable returned [-Werror=return-local-addr] when building mozilla-central

2017-10-18 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82600 Jonathan Wakely changed: What|Removed |Added Keywords||diagnostic --- Comment #7 from

[Bug c++/82600] [8 Regression] Address of local variable returned [-Werror=return-local-addr] when building mozilla-central

2017-10-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82600 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/82600] [8 Regression] Address of local variable returned [-Werror=return-local-addr] when building mozilla-central

2017-10-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82600 --- Comment #5 from Jakub Jelinek --- Reduced testcase: void *b[10]; template void ** foo (int x) { void **a = b; return [x]; } void ** bar (int x) { return foo <0> (x); }

[Bug c++/82600] [8 Regression] Address of local variable returned [-Werror=return-local-addr] when building mozilla-central

2017-10-18 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82600 Jakub Jelinek changed: What|Removed |Added Status|WAITING |NEW CC|