riccibruno added a comment.

These are not the only AST nodes representing cast expressions (there is also 
`CXXFunctionalCastExpr`, ...). What about replacing the `IgnoreParenImpCasts()` 
above by `IgnoreParenCasts()` ? Incidentally doing this uncovers another test 
(`Parser/cxx-ambig-decl-expr.cpp )` where this diagnostic is triggered.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71714/new/

https://reviews.llvm.org/D71714



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to