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

--- Comment #4 from eczbek.void at gmail dot com ---
Constructors too :(

```
template<int>
struct S {
    S(int x) requires(requires { [x] { x; }; }) {}
};
```


```
<source>: In lambda function:
<source>:3:41: error: use of parameter outside function body before ';' token
[-Wtemplate-body]
    3 |     S(int x) requires(requires { [x] { x; }; }) {}
      |                                         ^
```

Reply via email to