[Bug c++/100326] Crash with `#pragma GCC unroll` when calling value which can't be called in template function

2024-02-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100326 --- Comment #3 from Andrew Pinski --- I even tried: ``` template void f(T v) { #pragma GCC unroll v() for (int i = 0; i < 10; i++) { } } int main() { f(0); } ```

[Bug c++/100326] Crash with `#pragma GCC unroll` when calling value which can't be called in template function

2024-02-08 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100326 --- Comment #2 from Andrew Pinski --- This seems to be fixed on the trunk. I think by r14-6193-g59be79fd596ec8 .

[Bug c++/100326] Crash with `#pragma GCC unroll` when calling value which can't be called in template function

2021-04-29 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100326 Richard Biener changed: What|Removed |Added Ever confirmed|0 |1 Keywords|