libstdc++: Define std::bad_optional_access constructor as defaulted
authorJonathan Wakely <jwakely@redhat.com>
Tue, 9 Jun 2020 21:13:37 +0000 (22:13 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 9 Jun 2020 21:14:43 +0000 (22:14 +0100)
commitd3647057913d3671312a79a77be02fc459d89fb6
tree400c5265699f233b5f45d57b2ff2584b1282bf28
parentd7274dbf82001ae52e5c9a514129b49152498d40
libstdc++: Define std::bad_optional_access constructor as defaulted

The standard requires that std::bad_optional_access' default
constructor has a non-throwing exception specification.

* include/std/optional (bad_optional_access): Define default
constructor and destructor as defaulted.
* testsuite/20_util/optional/bad_access.cc: New test.
libstdc++-v3/include/std/optional
libstdc++-v3/testsuite/20_util/optional/bad_access.cc [new file with mode: 0644]