re PR regression/48570 (wrong subscription with -std=c++0x)
authorJakub Jelinek <jakub@redhat.com>
Wed, 13 Apr 2011 15:38:50 +0000 (17:38 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 13 Apr 2011 15:38:50 +0000 (17:38 +0200)
commit9c76a19e8f83e9e9a154d1779115b5061687c97b
treea80870721e002501255711c65cf7246f8a0d841d
parent91d8b4bd7ad6acd3907cba2346c70c101c793e9f
re PR regression/48570 (wrong subscription with -std=c++0x)

PR c++/48570
* semantics.c (cxx_eval_array_reference): Handle reading from
wchar_t, char16_t and char32_t STRING_CST.

* g++.dg/cpp0x/constexpr-wstring1.C: New test.
* g++.dg/cpp0x/constexpr-wstring2.C: New test.

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