This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/80984] [5 Regression] ICE with label/variable ambiguity


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]