fujitsu / compiler-test-suite

Test suite for C/C++/Fortran compilers developed by Fujitsu
Apache License 2.0
9 stars 1 forks source link

Identify which Fortran codes are non-standard #1

Open Beliavsky opened 7 months ago

Beliavsky commented 7 months ago

Some of the Fortran codes use non-standard syntax such as integer*8 declarations. Since they are so commonly used in Fortran codes a compiler should handle them, so such codes belong in the suite, but non-standard codes should also be identified as such, since a Fortran compiler should have a standard-conforming option that rejects them.

kawashima-fj commented 7 months ago

@Beliavsky Thank you for your interest!

Yes, as you say, separating non-standard tests will improve the value of this test suite. We Fujitsu are now concentrating on publishing our internal test suite to the Clang/Flang/LLVM community. This still requires a lot of work, including removing Fujitsu compiler-specific features and internal information. Once the whole test suite is published and integrated to the LLVM test-suite, we or someone could work on identifying non-standards programs if the community wants it.

Compiling with flags checking standards, for example -fsyntax-only -std=f2018 -Werror in the case of Flang, could be the first step to identify non-standard syntax though the accuracy depends on the ability of compilers. It would be so helpful if you have any idea to identify them.