[Bug c++/115715] gcc seems to incorrectly accept illegal constexpr constructor in virtual inheritance and static template class member

2024-06-30 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115715 Xi Ruoyao changed: What|Removed |Added Keywords|accepts-invalid |diagnostic Severity|normal

[Bug c++/115715] gcc seems to incorrectly accept illegal constexpr constructor in virtual inheritance and static template class member

2024-06-30 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115715 --- Comment #4 from Xi Ruoyao --- (In reply to Andrew Pinski from comment #3) > Confirmed. This is a QoI issue though. We should do more rejections on > non-dependent types inside templates. Should we open an enhancement like "reject templates

[Bug c++/115715] gcc seems to incorrectly accept illegal constexpr constructor in virtual inheritance and static template class member

2024-06-30 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115715 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-06-30 Status|UNCONFIRM

[Bug c++/115715] gcc seems to incorrectly accept illegal constexpr constructor in virtual inheritance and static template class member

2024-06-30 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115715 --- Comment #2 from Xi Ruoyao --- FWIW MSVC gives no diagnostic, and EDG gives a misleading diagnostic: '"", line 11: error: a constexpr variable must have a literal type or a reference type'

[Bug c++/115715] gcc seems to incorrectly accept illegal constexpr constructor in virtual inheritance and static template class member

2024-06-30 Thread xry111 at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115715 Xi Ruoyao changed: What|Removed |Added CC||xry111 at gcc dot gnu.org --- Comment #1 fr