================
@@ -50,6 +50,13 @@ ExprResult Parser::ParseCXXReflectExpression(SourceLocation 
OpLoc) {
       return ExprError();
 
     TypeSourceInfo *TSI = nullptr;
+    QualType QT = Actions.GetTypeFromParser(TR.get(), &TSI);
+
+    if (QT.isNull())
+      return ExprError();
+
+    if (!TSI)
+      TSI = Actions.getASTContext().getTrivialTypeSourceInfo(QT, 
/*Loc=*/OpLoc);
----------------
katzdm wrote:

I think `OpLoc` is the location of `^^`, right? Can we use the location of the 
type's name instead?

https://github.com/llvm/llvm-project/pull/164692
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to