public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100326] New: Crash with `#pragma GCC unroll` when calling value which can't be called in template function
@ 2021-04-29  0:44 ryan_greenblatt at brown dot edu
  2021-04-29  7:34 ` [Bug c++/100326] " rguenth at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ryan_greenblatt at brown dot edu @ 2021-04-29  0:44 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-08 23:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29  0:44 [Bug c++/100326] New: Crash with `#pragma GCC unroll` when calling value which can't be called in template function ryan_greenblatt at brown dot edu
2021-04-29  7:34 ` [Bug c++/100326] " rguenth at gcc dot gnu.org
2024-02-08 23:42 ` pinskia at gcc dot gnu.org
2024-02-08 23:42 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).