r234837 - in /trunk/gcc: cp/ChangeLog cp/conste...
ppalka@gcc.gnu.org
ppalka@gcc.gnu.org
Fri Apr 8 20:17:00 GMT 2016
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
More information about the Gcc-cvs
mailing list