https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117061
eczbek.void at gmail dot com changed:
What|Removed |Added
Resolution|--- |INVALID
Statu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117061
--- Comment #4 from eczbek.void at gmail dot com ---
Constructors too :(
```
template
struct S {
S(int x) requires(requires { [x] { x; }; }) {}
};
```
```
: In lambda function:
:3:41: error: use of parameter outside function body before ';
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117061
--- Comment #3 from eczbek.void at gmail dot com ---
Another test case: https://godbolt.org/z/98joW6saj
```
auto f = [x = 0] noexcept(noexcept(x)) { return x; };
```
:1:36: error: 'x' was not declared in this scope
1 | auto f = [x = 0] noex
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117061
--- Comment #2 from eczbek.void at gmail dot com ---
Clang errors on a similar-looking piece of code:
```
void foo(auto x) noexcept(noexcept([x] { x; })) {}
```
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117061
--- Comment #1 from Andrew Pinski ---
Accepts:
* clang
* MSVC
Rejects:
* GCC
* EDG