aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-expr.cc
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2025-02-15 10:48:17 +0100
committerJason Merrill <jason@redhat.com>2025-02-15 13:27:17 +0100
commitde66529f2e7bb24fb2b61b82e6a953f3f6c12902 (patch)
tree9a9da9f53e5616af68bed38408020f6452fab10d /gcc/fortran/trans-expr.cc
parentbf84e5e64662f8f0fdebfc0212e32bfca678f9eb (diff)
downloadgcc-de66529f2e7bb24fb2b61b82e6a953f3f6c12902.zip
gcc-de66529f2e7bb24fb2b61b82e6a953f3f6c12902.tar.gz
gcc-de66529f2e7bb24fb2b61b82e6a953f3f6c12902.tar.bz2
c++: NRVO, constexpr, lambda [PR118053]
Here during constant evaluation we encounter a VAR_DECL with DECL_VALUE_EXPR of the RESULT_DECL, where the latter has been adjusted for pass-by-invisible-reference. We already had the code to deal with this, we just need to use it in the non-capture case of DECL_VALUE_EXPR as well. PR c++/118053 gcc/cp/ChangeLog: * constexpr.cc (cxx_eval_constant_expression): Generalize DECL_VALUE_EXPR invisiref handling. gcc/testsuite/ChangeLog: * g++.dg/cpp1y/constexpr-lambda1.C: New test.
Diffstat (limited to 'gcc/fortran/trans-expr.cc')
0 files changed, 0 insertions, 0 deletions