Index: flang/lib/Semantics/check-declarations.cpp =================================================================== --- flang/lib/Semantics/check-declarations.cpp +++ flang/lib/Semantics/check-declarations.cpp @@ -899,9 +899,6 @@ // See comment on the similar check in CheckProcEntity() if (details.isDummy()) { messages_.Say("A dummy procedure may not be ELEMENTAL"_err_en_US); - } else if (details.dummyArgs().empty()) { - messages_.Say( - "An ELEMENTAL subprogram must have at least one dummy argument"_err_en_US); } else { for (const Symbol *dummy : details.dummyArgs()) { if (!dummy) { // C15100 Index: flang/test/Semantics/elemental01.f90 =================================================================== --- flang/test/Semantics/elemental01.f90 +++ flang/test/Semantics/elemental01.f90 @@ -1,11 +1,6 @@ ! RUN: %python %S/test_errors.py %s %flang_fc1 ! Tests ELEMENTAL subprogram constraints C15100-15102 -!ERROR: An ELEMENTAL subprogram must have at least one dummy argument -elemental integer function noargs - noargs = 1 -end function - !ERROR: An ELEMENTAL subroutine may not have an alternate return dummy argument elemental subroutine altret(*) end subroutine