================
@@ -63,12 +63,10 @@ int main()
auto l = [](auto
(*)(auto)) { }; //expected-error{{'auto' not allowed}}
//FIXME: These diagnostics might need some work.
- auto l2 = [](char auto::*pm) { }; //expected-error{{cannot combine with
previous}}\
- expected-error{{'pm' does not point
into a class}}
+ auto l2 = [](char auto::*pm) { }; // expected-error {{'pm' does not point
into a class}} \
+ expected-warning {{'auto' storage
class specifier is not permitted in C++11, and will not be supported in future
releases}}
----------------
AaronBallman wrote:
The new diagnostic here is incorrect, isn't it? It's not complaining about
`auto l2` which would be almost like a storage class specifier use, it's
complaining about `auto::*pm`, right? Neither the old nor the new diagnostic is
particularly helpful, so I suppose this one is a wash.
https://github.com/llvm/llvm-project/pull/177865
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits