Skip to content

Commit 05836e0

Browse files
committed
initial commit
1 parent 829f2f2 commit 05836e0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

flang/lib/Parser/token-sequence.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ void TokenSequence::clear() {
3030

3131
void TokenSequence::pop_back() {
3232
CHECK(!start_.empty());
33-
CHECK(nextStart_ > start_.back());
33+
CHECK(nextStart_ >= start_.back());
3434
std::size_t bytes{nextStart_ - start_.back()};
3535
nextStart_ = start_.back();
3636
start_.pop_back();
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)