diff options
author | Marek Polacek <polacek@redhat.com> | 2015-03-30 18:39:17 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-03-30 18:39:17 +0000 |
commit | ef4bac7802534e52d3031dccf0cdfb2c53b2d836 (patch) | |
tree | 05c8ccb5585dce489c8e83023f76d83a742cb992 /gcc/ipa-polymorphic-call.c | |
parent | 6c384511a36aa97eda218a2935fe3a14720e3b59 (diff) | |
download | gcc-ef4bac7802534e52d3031dccf0cdfb2c53b2d836.zip gcc-ef4bac7802534e52d3031dccf0cdfb2c53b2d836.tar.gz gcc-ef4bac7802534e52d3031dccf0cdfb2c53b2d836.tar.bz2 |
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
Diffstat (limited to 'gcc/ipa-polymorphic-call.c')
0 files changed, 0 insertions, 0 deletions