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++/70590] [6 Regression] r234810 causes error: location references block not in block tree


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70590

--- Comment #13 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Author: ppalka
Date: Fri Apr  8 20:17:10 2016
New Revision: 234837

URL: https://gcc.gnu.org/viewcvs?rev=234837&root=gcc&view=rev
Log:
Fix PR c++/70590 (error: location references block not in block tree)

gcc/cp/ChangeLog:

        PR c++/70590
        PR c++/70452
        * constexpr.c (cxx_eval_outermost_expression): Call unshare_expr
        on the result if it's not a CONSTRUCTOR.

gcc/testsuite/ChangeLog:

        PR c++/70590
        PR c++/70452
        * g++.dg/pr70590.C: New test.
        * g++.dg/pr70590-2.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/pr70590-2.C
    trunk/gcc/testsuite/g++.dg/pr70590.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/constexpr.c
    trunk/gcc/testsuite/ChangeLog

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