diff options
author | Jason Merrill <jason@redhat.com> | 2020-02-03 16:03:45 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-02-03 17:52:17 -0500 |
commit | 87fbd5347b33883006dc77e779b9edc590fcd2f0 (patch) | |
tree | 348baf29ff78fbda5e5cbdf5556c0aeebb6509d6 /gcc/go | |
parent | 8fda2c274ac66d60c1dfc1349e9efb4e8c2a3580 (diff) | |
download | gcc-87fbd5347b33883006dc77e779b9edc590fcd2f0.zip gcc-87fbd5347b33883006dc77e779b9edc590fcd2f0.tar.gz gcc-87fbd5347b33883006dc77e779b9edc590fcd2f0.tar.bz2 |
c++: Fix constexpr vs. reference parameter.
[expr.const] specifically rules out mentioning a reference even if its
address is never used, because it implies indirection that is similarly
non-constant for a pointer variable.
PR c++/66477
* constexpr.c (cxx_eval_constant_expression) [PARM_DECL]: Don't
defer loading the value of a reference.
Diffstat (limited to 'gcc/go')
0 files changed, 0 insertions, 0 deletions