https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100326
Bug ID: 100326
Summary: Crash with `#pragma GCC unroll` when calling value
which can't be called in template function
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ryan_greenblatt at brown dot edu
Target Milestone: ---
```
template<typename T> void f(T v) {
#pragma GCC unroll v()
for (;;) {
}
}
int main() {
f(0);
}
```
https://godbolt.org/z/8bEscGszK
Amusingly, this gets gcc and clang.