]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: improve attribute conflict checking [PR93635]
authorHarald Anlauf <anlauf@gmx.de>
Thu, 23 May 2024 19:13:00 +0000 (21:13 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Fri, 24 May 2024 19:27:04 +0000 (21:27 +0200)
commit9561cf550a66a89e7c8d31202a03c4fddf82a3f2
treea5583cb70c78092b2f935d3613ef7fc925336c5d
parent93765736815a049e14d985b758a213cfe60c1e1c
Fortran: improve attribute conflict checking [PR93635]

gcc/fortran/ChangeLog:

PR fortran/93635
* symbol.cc (conflict_std): Helper function for reporting attribute
conflicts depending on the Fortran standard version.
(conf_std): Helper macro for checking standard-dependent conflicts.
(gfc_check_conflict): Use it.

gcc/testsuite/ChangeLog:

PR fortran/93635
* gfortran.dg/c-interop/c1255-2.f90: Adjust pattern.
* gfortran.dg/pr87907.f90: Likewise.
* gfortran.dg/pr93635.f90: New test.

Co-authored-by: Steven G. Kargl <kargl@gcc.gnu.org>
gcc/fortran/symbol.cc
gcc/testsuite/gfortran.dg/c-interop/c1255-2.f90
gcc/testsuite/gfortran.dg/pr87907.f90
gcc/testsuite/gfortran.dg/pr93635.f90 [new file with mode: 0644]