We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08ed9e1 commit 67d6679Copy full SHA for 67d6679
flang/lib/Parser/token-sequence.cpp
@@ -30,7 +30,8 @@ void TokenSequence::clear() {
30
31
void TokenSequence::pop_back() {
32
CHECK(!start_.empty());
33
- CHECK(nextStart_ > start_.back());
+ // If the last token is empty then `nextStart_ == start_.back()`.
34
+ CHECK(nextStart_ >= start_.back());
35
std::size_t bytes{nextStart_ - start_.back()};
36
nextStart_ = start_.back();
37
start_.pop_back();
flang/test/Parser/issue-146362.1.f90
@@ -0,0 +1,5 @@
1
+! RUN: %flang_fc1 -fsyntax-only -cpp %s 2>&1
2
+#define UNITY(k) 1_ ## k
3
+PROGRAM REPRODUCER
4
+WRITE(*,*) UNITY(4)
5
+END PROGRAM REPRODUCER
0 commit comments