{"id":46450807,"url":"https://github.com/nncarlson/fortran-compiler-tests","last_synced_at":"2026-03-06T00:21:01.360Z","repository":{"id":55956965,"uuid":"111214598","full_name":"nncarlson/fortran-compiler-tests","owner":"nncarlson","description":"A collection of Fortran compiler bug examples and tests","archived":false,"fork":false,"pushed_at":"2026-02-12T21:20:25.000Z","size":420,"stargazers_count":38,"open_issues_count":3,"forks_count":7,"subscribers_count":11,"default_branch":"master","last_synced_at":"2026-02-13T05:50:27.161Z","etag":null,"topics":["test-suite","testsuite"],"latest_commit_sha":null,"homepage":"","language":"Fortran","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nncarlson.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-11-18T15:03:41.000Z","updated_at":"2026-02-12T21:20:29.000Z","dependencies_parsed_at":"2023-12-13T19:29:21.323Z","dependency_job_id":"3f737c30-bdf0-4ffb-8132-163335dee0a2","html_url":"https://github.com/nncarlson/fortran-compiler-tests","commit_stats":{"total_commits":169,"total_committers":3,"mean_commits":"56.333333333333336","dds":"0.035502958579881616","last_synced_commit":"727ac33369a4c8f56e07803b70a986c70814d658"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nncarlson/fortran-compiler-tests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nncarlson%2Ffortran-compiler-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nncarlson%2Ffortran-compiler-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nncarlson%2Ffortran-compiler-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nncarlson%2Ffortran-compiler-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nncarlson","download_url":"https://codeload.github.com/nncarlson/fortran-compiler-tests/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nncarlson%2Ffortran-compiler-tests/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30156269,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T22:39:40.138Z","status":"ssl_error","status_checked_at":"2026-03-05T22:39:24.771Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["test-suite","testsuite"],"created_at":"2026-03-06T00:21:00.721Z","updated_at":"2026-03-06T00:21:01.353Z","avatar_url":"https://github.com/nncarlson.png","language":"Fortran","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Fortran Compiler Tests\n\nThis repository starts as a collection of reproducers from many of the Fortran\ncompiler bug reports I have made over the years. It comprises the more recent\nbug reproducers for contemporary compilers. My initial goal was simply to\ngather them to a central canonical location, and make them accessible to a few\ninterested people. I also wanted to be able to easily run the tests and clearly\nsee which tests are passing and failing.\n\nNote that the number of tests for a given compiler is a reflection of my level\nof engagement with the compiler, and should not be construed as an indication\nof its quality. Quality, from the perspective of my usage, is measured more by\nthe number of failing tests.\n\nThe development of comprehensive test suites for specific Fortran 2003 and\nlater features, such as deferred-length allocatable character variables or\nparametrized derived data types, is a possible future goal. I'm fed up with\nFortran compilers that claim support for a feature, but have a half-assed\nimplementation that only works for simple usage and fails badly for more\ncomplex usage. A test suite that could thoroughly probe an implementation\nwould help shed the light of reality on the claims.\n\nContributions of tests or suggestions for improving the usefulness of this\nproject are most welcome -- make a pull request.\n\n### Running the tests\n\nI am attempting to use cmake/ctest as the framework for running the tests.\nIt is unclear how well this will work out in the end.  What I have now is\nhalf-baked and needs further refinement. Running the tests for a particular\ncompiler goes something like this\n```\ncd gfortran-bugs\nmkdir build\ncd build\ncmake ..\nmake\nctest\n```\nThis assumes that `gfortran` is in your path, or that your `FC` environment\nvariable is set to the path to gfortran, so that the `cmake` configuration\nstep finds and uses it.\n\nSome current cmake issues:\n* The tests really want to be compiled without any compiler flags. Not\n  specifying a value for `CMAKE_BUILD_TYPE` seems to have that effect.\n  Some tests require specific compiler flags, but these are added on a\n  file-by-file basis by the CMake files.\n* Many tests are compile tests (does the code compile without an error or\n  not). Doing that compilation as part of the `make` step doesn't get\n  get properly captured by ctest (that I know of).  To fix this I'm using\n  an approach I found in the boost-cmake/bcm project, which has `ctest`\n  invoke the compilation.\n* Other tests are run tests (does the executable run without error or\n  produce the correct result). These are compiled and linked by the `make`\n  step. However in some cases that too may fail. When that happens the\n  `make` step probably terminates prematurely and may leave other test\n  executables unbuilt. Running `ctest` will report 'did not run' for tests\n  whose executable is missing. This isn't a satisfactory state of affairs.\n\n### License\nPractically you may consider the test codes as \"public domain\". They have\nno intrinsic value other than their sole purpose as bug reproducers for\nspecific compilers. However, I've gathered that \"public domain\" can actually\nbe a problem, so I've opted for the most liberal license I can find -- MIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnncarlson%2Ffortran-compiler-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnncarlson%2Ffortran-compiler-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnncarlson%2Ffortran-compiler-tests/lists"}