[Bug c++/88557] Lambda in template parameter list compiler segmentation fault (ICE)

2024-04-13 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88557

Andrew Pinski  changed:

   What|Removed |Added

   Keywords||c++-lambda, rejects-valid
   Last reconfirmed|2021-08-07 00:00:00 |2024-4-13

--- Comment #3 from Andrew Pinski  ---
Now we are rejecting this valid C++17 code:
```
template
void f() { }
```

With:
```
:3:21: error: lambda-expression in template-argument only available
with '-std=c++2a' or '-std=gnu++2a'
3 | template
  | ^
```

Because I would have assumed calling a constexpr lambda would be a valid C++17
code.

We even reject this and cause an ICE:
```
template
void f() { }
```

But those examples are all valid C++17 due to constexpr'ness.

[Bug c++/88557] Lambda in template parameter list compiler segmentation fault (ICE)

2021-08-06 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88557

Andrew Pinski  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Keywords|ice-on-invalid-code |ice-on-valid-code
   Last reconfirmed||2021-08-07
 Status|UNCONFIRMED |NEW

--- Comment #2 from Andrew Pinski  ---
The first example works on the trunk.
The second example has an template missing but even adding that, the ICE is
still there.

[Bug c++/88557] Lambda in template parameter list compiler segmentation fault (ICE)

2018-12-20 Thread vittorio.romeo at outlook dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88557

--- Comment #1 from Vittorio Romeo  ---
The "ice-on-invalid-code" tag was added, but I thought this was valid C++2a
code. Am I mistaken?