vsapsai added a comment. It occurred to me that another approach for fixing the crash can be setting `IsTypeSpecifier` to `true` while we ParseCastExpression. According to
cast-expression: unary-expression ( type-id ) cast-expression type-id: type-specifier-seq abstract-declarator[opt] it looks reasonable to require `IsTypeSpecifier` during parsing part of cast expression inside parentheses. What do you think? Is this approach worth pursuing? Does it sound better than the one offered initially? https://reviews.llvm.org/D37089 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits