re PR c++/65398 ([C++11] GCC rejects constexpr variable definitions with valid initialization)
PR c++/65398 * constexpr.c (cxx_fold_indirect_ref): Don't perform the *(&A[i] p+ j) => A[i + j] transformation here. (cxx_eval_pointer_plus_expression): New function. (cxx_eval_constant_expression): Use it here. * g++.dg/cpp0x/pr65398-2.C: New test. From-SVN: r221777
Showing
gcc/testsuite/g++.dg/cpp0x/pr65398-2.C
0 → 100644
Please
register
or
sign in
to comment