File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ static constexpr auto programUnit{
64
64
construct<ProgramUnit>(indirect (subroutineSubprogram)) ||
65
65
construct<ProgramUnit>(indirect (Parser<Submodule>{})) ||
66
66
construct<ProgramUnit>(indirect (Parser<BlockData>{})) ||
67
- lookAhead (validFunctionStmt) >>
67
+ lookAhead (maybe (label) >> validFunctionStmt) >>
68
68
construct<ProgramUnit>(indirect (functionSubprogram)) ||
69
69
construct<ProgramUnit>(indirect (Parser<MainProgram>{}))};
70
70
static constexpr auto normalProgramUnit{StartNewSubprogram{} >> programUnit /
Original file line number Diff line number Diff line change
1
+ ! RUN: %flang_fc1 - fsyntax- only - pedantic %s 2 >&1 | FileCheck -- allow- empty %s
2
+ !CHECK- NOT: error:
3
+ 1 function fun()
4
+ 2 end function
5
+ 3 write (6 ,* ) " pass"
6
+ 4 end
7
+
You can’t perform that action at this time.
0 commit comments