re PR c++/65398 ([C++11] GCC rejects constexpr variable definitions with valid initia...
authorMarek Polacek <polacek@redhat.com>
Fri, 20 Mar 2015 21:53:40 +0000 (21:53 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 20 Mar 2015 21:53:40 +0000 (21:53 +0000)
commitf594abf4b9ebf0976c6dbebc9abd51e0abd2da48
tree9fd7386d7df1c1a211bdaee788626840958f801d
parent730c436a33f0978a689c866df072ea3540ed037d
re PR c++/65398 ([C++11] GCC rejects constexpr variable definitions with valid initialization)

PR c++/65398
* constexpr.c (cxx_fold_indirect_ref): Transform *(&A[i] p+ j) into
A[i + j].

* g++.dg/cpp0x/pr65398.C: New test.

From-SVN: r221544
gcc/cp/ChangeLog
gcc/cp/constexpr.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr65398.C [new file with mode: 0644]