]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/constexpr.cc
Fix PR c++/70590 (error: location references block not in block tree)
authorPatrick Palka <ppalka@gcc.gnu.org>
Fri, 8 Apr 2016 20:17:10 +0000 (20:17 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Fri, 8 Apr 2016 20:17:10 +0000 (20:17 +0000)
commit56cfb59670621ffe7761eb200814dcc27d99cf63
treee8e14a196ca10d04739f53b754414a46277ad80e
parentabc0647a4d9f9a7acf0fdf39e9abc2fe39c5948d
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.

From-SVN: r234837
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr70590-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/pr70590.C [new file with mode: 0644]
This page took 0.059812 seconds and 5 git commands to generate.