This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/80984] [5 Regression] ICE with label/variable ambiguity
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 16 Sep 2017 18:33:32 +0000
- Subject: [Bug c++/80984] [5 Regression] ICE with label/variable ambiguity
- Auto-submitted: auto-generated
- References: <bug-80984-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80984
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Sat Sep 16 18:33:01 2017
New Revision: 252879
URL: https://gcc.gnu.org/viewcvs?rev=252879&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-5-branch/gcc/testsuite/g++.dg/opt/nrv18.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/cp-gimplify.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog