vangthao95 wrote:
The relevant cases are lambdas in parenthesized direct initializers, where
Clang must distinguish `Type foo([x] mutable {});` from an MSVC-attributed
function declaration such as `Type foo([helpstring("h")] int);`.
I confirmed that MSVC accepts both forms, while Clang rejects the lambda with
`invalid storage class specifier in function declarator` because it treats [x]
as a Microsoft attribute and parses the initializer as a function declaration.
Removed some irrelevant tests that were not in the right form.
https://github.com/llvm/llvm-project/pull/214247
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits