Fortran 2018

1 program Added 2026-02-11T12:59:29Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: Fortran 18, F2018
Provenance: commit 5bcfa817f9 · authored 2026-02-11T13:59:59+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Fortran 2008 (0.64)Fortran 2023 (0.50)Fortran 2003 (0.38)Fortran (0.38)FORTRAN I (0.36)

LLM-contributed programs

Error Stop Demo

Provenance: commit 5bcfa817f9 · authored 2026-02-11T13:59:59+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.f90 · added: 2026-02-11T12:59:41Z
program fortran2018_demo
  implicit none
  integer :: i, n
  real :: sum_val
  
  ! Fortran 2018 feature: error stop with message
  n = -5
  if (n < 0) then
    error stop "Error: n must be non-negative"
  end if
  
  sum_val = 0.0
  do i = 1, n
    sum_val = sum_val + real(i)
  end do
  
  print *, "Sum from 1 to", n, "is", sum_val
  
end program fortran2018_demo

Contribute — propose a file extension

Tell us where to find evidence about Fortran 2018 (mapped to pl/fortran_2018). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Fortran 2018/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← Fortran 2008 Fortran 2023 →