[Bug c++/102163] [10/11/12 Regression] std::variant rejects valid constant expression

2021-10-06 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102163 --- Comment #5 from CVS Commits --- The releases/gcc-11 branch has been updated by Patrick Palka : https://gcc.gnu.org/g:59c6831682dfa8bec2b5a62bdc85739924970808 commit r11-9080-g59c6831682dfa8bec2b5a62bdc85739924970808 Author: Patrick Palka

[Bug c++/102163] [10/11/12 Regression] std::variant rejects valid constant expression

2021-09-14 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102163 --- Comment #4 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:de07cff96abd43f6f65dcf333958899c2ec42598 commit r12-3527-gde07cff96abd43f6f65dcf333958899c2ec42598 Author: Patrick Palka Date:

[Bug c++/102163] [10/11/12 Regression] std::variant rejects valid constant expression

2021-09-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102163 --- Comment #3 from Andrew Pinski --- Note this works: struct O { constexpr O() {} }; union _Variadic_union { constexpr _Variadic_union() : _M_rest() { } O _M_rest; }; constexpr _Variadic_union w; - CUT --- But this fails: struct O

[Bug c++/102163] [10/11/12 Regression] std::variant rejects valid constant expression

2021-09-01 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102163 --- Comment #2 from Andrew Pinski --- PR 97665 is related but it does not have an intializer for _M_rest.

[Bug c++/102163] [10/11/12 Regression] std::variant rejects valid constant expression

2021-09-01 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102163 Patrick Palka changed: What|Removed |Added Target Milestone|--- |10.4 Last reconfirmed|