https://bugs.llvm.org/show_bug.cgi?id=50158

            Bug ID: 50158
           Summary: Crash with `#pragma GCC unroll` when calling value
                    which can't be called in template function
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

```
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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to