]> git.ipfire.org Git - thirdparty/gcc.git/commit
constexpr.c (cxx_eval_constant_expression): Temporarily change input_location to...
authorJakub Jelinek <jakub@redhat.com>
Wed, 23 Oct 2019 12:35:00 +0000 (14:35 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 23 Oct 2019 12:35:00 +0000 (14:35 +0200)
commitacfdb9605f32a99dcbddff5753928dee3932b06b
tree82fdc942d3d842fd493e527840f3a3c0365cb962
parent149a3e4d4e3aacdbfee165f0efea4d6327327265
constexpr.c (cxx_eval_constant_expression): Temporarily change input_location to CLEANUP_STMT location.

* constexpr.c (cxx_eval_constant_expression) <case CLEANUP_STMT>:
Temporarily change input_location to CLEANUP_STMT location.

* g++.dg/cpp2a/constexpr-dtor3.C: Expect in 'constexpr' expansion of
message on the line with variable declaration.
* g++.dg/ext/constexpr-attr-cleanup1.C: Likewise.

From-SVN: r277320
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp2a/constexpr-dtor3.C
gcc/testsuite/g++.dg/ext/constexpr-attr-cleanup1.C