faisalv updated this revision to Diff 309809.
faisalv edited the summary of this revision.
faisalv added a comment.
Per Richard's suggestion, instead of including the cached tokens into the
decltype annotation, i revert the cache to match the end of where we think the
(broken) decltype
rsmith added inline comments.
Comment at: clang/lib/Parse/ParseDeclCXX.cpp:1055
+ // semi-colon.
+ EndLoc = PP.getLastCachedTokenLocation();
+}
It seems to me that either `EndLoc` was miscomputed and should already point to
the last token that we
faisalv created this revision.
faisalv added a reviewer: rsmith.
faisalv added a project: clang.
Herald added a subscriber: cfe-commits.
faisalv requested review of this revision.
https://bugs.llvm.org/show_bug.cgi?id=42049
Currently clang, in the following code, when tentatively parsing the