[Bug c++/80984] [5/6/7 Regression] ICE with label/variable ambiguity
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jun 21 22:16:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80984
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jun 21 22:14:23 2017
New Revision: 249478
URL: https://gcc.gnu.org/viewcvs?rev=249478&root=gcc&view=rev
Log:
Backported from mainline
2017-06-13 Jakub Jelinek <jakub@redhat.com>
PR c++/80984
* cp-gimplify.c (cp_genericize): Only look for VAR_DECLs in
BLOCK_VARS (outer) chain.
(cxx_omp_const_qual_no_mutable): Likewise.
* g++.dg/opt/nrv18.C: New test.
Added:
branches/gcc-7-branch/gcc/testsuite/g++.dg/opt/nrv18.C
Modified:
branches/gcc-7-branch/gcc/cp/ChangeLog
branches/gcc-7-branch/gcc/cp/cp-gimplify.c
branches/gcc-7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list