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{
6464 construct<ProgramUnit>(indirect (subroutineSubprogram)) ||
6565 construct<ProgramUnit>(indirect (Parser<Submodule>{})) ||
6666 construct<ProgramUnit>(indirect (Parser<BlockData>{})) ||
67- lookAhead (validFunctionStmt) >>
67+ lookAhead (maybe (label) >> validFunctionStmt) >>
6868 construct<ProgramUnit>(indirect (functionSubprogram)) ||
6969 construct<ProgramUnit>(indirect (Parser<MainProgram>{}))};
7070static 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