diff options
author | Jason Merrill <jason@redhat.com> | 2024-08-05 15:04:05 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2024-08-06 13:04:13 -0400 |
commit | 352c21c8a22a48d34cbd2fbfe398ee12c0a1d681 (patch) | |
tree | 71b24db8d9d49c3dd683a3d2b538901ef024bd84 /libcpp | |
parent | 2f759fa9f4dd78ae8d86482ccda72a335aaac404 (diff) | |
download | gcc-352c21c8a22a48d34cbd2fbfe398ee12c0a1d681.zip gcc-352c21c8a22a48d34cbd2fbfe398ee12c0a1d681.tar.gz gcc-352c21c8a22a48d34cbd2fbfe398ee12c0a1d681.tar.bz2 |
c++: zero-init and class nttp [PR94568]
A zero-initializer should not reflect the constness of what it's
initializing, as it does not for initializers with different syntax.
This does have mangling implications for rare C++20 code, but it seems
infeasable to make the mangling depend on -fabi-version while fixing the
semantic bug, and C++20 is still experimental anyway.
PR c++/94568
gcc/cp/ChangeLog:
* init.cc (build_zero_init_1): Call cv_unqualified.
gcc/testsuite/ChangeLog:
* g++.dg/cpp2a/nontype-class36.C: Remove xfail.
* g++.dg/cpp2a/nontype-class37.C: Remove xfail.
* g++.dg/cpp1z/nontype-auto26.C: New test.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions