]> gcc.gnu.org Git - gcc.git/commit
c++: Unshare expressions from constexpr cache.
authorJason Merrill <jason@redhat.com>
Thu, 23 Jan 2020 20:45:36 +0000 (15:45 -0500)
committerJason Merrill <jason@redhat.com>
Fri, 24 Jan 2020 17:34:02 +0000 (12:34 -0500)
commit28a5d5c365044710ba32510b9bec67dd40562154
tree0f1d332f9ea3b9b71905c754e94626b25ff471aa
parent6ad405c430f40424a53fc93e5ea12b91453e1daf
c++: Unshare expressions from constexpr cache.

Another place we need to unshare cached expressions.

PR c++/92852 - ICE with generic lambda and reference var.
* constexpr.c (maybe_constant_value): Likewise.
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/g++.dg/cpp1y/lambda-generic-ref1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1z/decomp48.C
This page took 0.062989 seconds and 5 git commands to generate.