We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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.