https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125317

            Bug ID: 125317
           Summary: Error on NTTP defaulted to requires expression
                    containing '>'
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eczbek.void at gmail dot com
  Target Milestone: ---

https://godbolt.org/z/4nYjxhEGx
Clang accepts this

```
template<bool = requires { 0 > 0; }> int x;
```

```
<source>:1:29: error: expected ';' before '>' token
    1 | template<bool = requires { 0 > 0; }> int x;
      |                             ^~
      |                             ;
```

Reply via email to