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.
Showing
gcc/testsuite/g++.dg/cpp0x/constexpr-ref12.C
0 → 100644
Please
register
or
sign in
to comment