Fortran: diagnose and reject duplicate CONTIGUOUS attribute [PR108025]
authorHarald Anlauf <anlauf@gmx.de>
Thu, 8 Dec 2022 21:50:45 +0000 (22:50 +0100)
committerHarald Anlauf <anlauf@gmx.de>
Thu, 8 Dec 2022 21:50:45 +0000 (22:50 +0100)
commit3a9f6d5a8ee490adf9a18f93feaf86542642be7d
treefc2989bdd56999446e2555acace56733be9f3330
parent7410032a772a9e77b620b091c2b551b68113a179
Fortran: diagnose and reject duplicate CONTIGUOUS attribute [PR108025]

gcc/fortran/ChangeLog:

PR fortran/108025
* symbol.cc (gfc_add_contiguous): Diagnose and reject duplicate
CONTIGUOUS attribute.

gcc/testsuite/ChangeLog:

PR fortran/108025
* gfortran.dg/contiguous_12.f90: New test.
gcc/fortran/symbol.cc
gcc/testsuite/gfortran.dg/contiguous_12.f90 [new file with mode: 0644]