[Bug c++/118626] C++20 std::variant causes a segmentation fault

2025-01-28 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118626 --- Comment #9 from Patrick Palka --- A valid reduced testcase: template struct _Nth_type; template struct variant { template static constexpr long __accepted_index = 0; template using __to_type = _Nth_type<_Np>; template using __accepte

[Bug c++/118626] C++20 std::variant causes a segmentation fault

2025-01-28 Thread ppalka at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118626 Patrick Palka changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/118626] C++20 std::variant causes a segmentation fault

2025-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118626 --- Comment #7 from Andrew Pinski --- Created attachment 60254 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60254&action=edit Reduced testcase Note this reduced testcase is invalid in this case. I didn't try to reduce it to a valid case

[Bug c++/118626] C++20 std::variant causes a segmentation fault

2025-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118626 Marek Polacek changed: What|Removed |Added Keywords|needs-reduction | --- Comment #6 from Marek Polacek ---

[Bug c++/118626] C++20 std::variant causes a segmentation fault

2025-01-23 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118626 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Keywords|needs-source

[Bug c++/118626] C++20 std::variant causes a segmentation fault

2025-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118626 Andrew Pinski changed: What|Removed |Added Ever confirmed|1 |0 Status|WAITING

[Bug c++/118626] C++20 std::variant causes a segmentation fault

2025-01-23 Thread JanPapuch at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118626 --- Comment #3 from Jan Papesch --- (In reply to Andrew Pinski from comment #1) > Can you provide the source you are compiling. Preprocessed would be best. > You might need to compress it if it is too large. I'm sorry, I thought I attached it w

[Bug c++/118626] C++20 std::variant causes a segmentation fault

2025-01-23 Thread JanPapuch at seznam dot cz via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118626 --- Comment #2 from Jan Papesch --- Created attachment 60248 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=60248&action=edit Zipped preprocessed source

[Bug c++/118626] C++20 std::variant causes a segmentation fault

2025-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118626 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED