PR c++/88741 - wrong error with initializer-string.
authorMarek Polacek <polacek@redhat.com>
Mon, 7 Jan 2019 19:25:41 +0000 (19:25 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 7 Jan 2019 19:25:41 +0000 (19:25 +0000)
commit25a34b0236ffcf23e9bc29826475729ccfef7c38
tree9293afe0d1d2aa68c735aa506b9884f9d2dd0c61
parentcc770199ded4655756eb98399f6d26f5a0c55f29
PR c++/88741 - wrong error with initializer-string.

* decl.c (cp_complete_array_type): Strip any location wrappers.

* g++.dg/init/array50.C: New test.

From-SVN: r267656
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/array50.C [new file with mode: 0644]