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
Showing
- gcc/cp/ChangeLog 6 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/semantics.c 17 additions, 5 deletionsgcc/cp/semantics.c
- gcc/testsuite/ChangeLog 6 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/cpp0x/constexpr-wstring1.C 34 additions, 0 deletionsgcc/testsuite/g++.dg/cpp0x/constexpr-wstring1.C
- gcc/testsuite/g++.dg/cpp0x/constexpr-wstring2.C 7 additions, 0 deletionsgcc/testsuite/g++.dg/cpp0x/constexpr-wstring2.C
Loading
Please register or sign in to comment