[Bug c++/97237] [10/11 Regression] static_assert does not accept fpermissive code

2020-11-04 Thread lutztonineubert at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97237 Toni Neubert changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/97237] [10/11 Regression] static_assert does not accept fpermissive code

2020-10-24 Thread lutztonineubert at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97237 --- Comment #4 from Toni Neubert --- This code seems to fail for the same reason: constexpr int get() { [[maybe_unused]] auto i = 1 << 32; return 0; } template constexpr int test() { return a; } constexpr int t1 = get(); constexpr

[Bug c++/97237] [10/11 Regression] static_assert does not accept fpermissive code

2020-10-16 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97237 Richard Biener changed: What|Removed |Added Target Milestone|--- |10.3

[Bug c++/97237] [10/11 Regression] static_assert does not accept fpermissive code

2020-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97237 --- Comment #3 from Jonathan Wakely --- (In reply to Toni Neubert from comment #0) > The following valid code: N.B. that's not valid at all. That's why you need to use -fpermissive to compile it. > But this code is valid in all versions: No,

[Bug c++/97237] [10/11 Regression] static_assert does not accept fpermissive code

2020-09-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97237 --- Comment #2 from Jakub Jelinek --- It surprises me -fpermissive ever accepted such bogosities. Also using -fpermissive with C++11 and later code is very weird, -fpermissive is about letting some very old unmaintained code compile, but using

[Bug c++/97237] [10/11 Regression] static_assert does not accept fpermissive code

2020-09-29 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97237 Jonathan Wakely changed: What|Removed |Added Known to fail||10.2.0, 11.0 Last reconfirmed|