We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
In the following code, the init-capture of the lambda has the same name as the NTTP i, which should not be allowed.
i
template <int i> int f() { return [i = 0] { return i; }(); } int i = f<0>();
This is diagnosed by GCC and EDG.
See https://compiler-explorer.com/z/oh7MhabG9.