https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84601
--- Comment #3 from ville at gcc dot gnu.org --- Author: ville Date: Tue Mar 6 21:43:03 2018 New Revision: 258304 URL: https://gcc.gnu.org/viewcvs?rev=258304&root=gcc&view=rev Log: PR libstdc++/84601 * include/std/optional (_Optional_payload): Split into multiple specializations that can handle different cases of trivial or non-trivial assignment operators. * testsuite/20_util/optional/84601.cc: New. * testsuite/20_util/optional/cons/value_neg.cc: Adjust. Added: trunk/libstdc++-v3/testsuite/20_util/optional/84601.cc Modified: trunk/libstdc++-v3/ChangeLog trunk/libstdc++-v3/include/std/optional trunk/libstdc++-v3/testsuite/20_util/optional/cons/value_neg.cc