aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-09-14 10:27:09 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-09-15 10:24:01 +0100
commit5daeda573cedc2910ecee7f1b3168210143dc026 (patch)
tree8d37d1acaca91dc735fe416371df021128e0f0c1 /gcc
parentd19bdf8874059457fdfe50a9e14dad8f8b8cecbb (diff)
downloadgcc-5daeda573cedc2910ecee7f1b3168210143dc026.zip
gcc-5daeda573cedc2910ecee7f1b3168210143dc026.tar.gz
gcc-5daeda573cedc2910ecee7f1b3168210143dc026.tar.bz2
libstdc++: Fix constraints for std::variant default constructor
The standard says the default ctor should be constrained, not deleted. Our use of a defaulted default ctor and _Enable_default_constructor base class results in it being deleted. libstdc++-v3/ChangeLog: * include/std/variant (variant): Remove derivation from _Enable_default_constructor base class. (variant::variant()): Constrain. * testsuite/20_util/variant/default_ctor.cc: New test.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions