https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97237
Toni Neubert changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97237
Richard Biener changed:
What|Removed |Added
Target Milestone|--- |10.3
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,
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 th
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|