]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix ICE on invalid in gfc_format_decoder.
authorSteve Kargl <kargls@comcast.net>
Fri, 2 Aug 2024 04:50:49 +0000 (21:50 -0700)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sat, 3 Aug 2024 00:09:21 +0000 (17:09 -0700)
commita53c029bf855fd4250076a07d0d8150b9c39bc91
treeb3b671a7e60be686615faa204126ed643bcb1585
parent5a7fd37d28c55f1f52612e57de250c4da168f982
Fortran: Fix ICE on invalid in gfc_format_decoder.

PR fortran/104626

gcc/fortran/ChangeLog:

* symbol.cc (gfc_add_save): Add checks for SAVE attribute
conflicts and duplicate SAVE attribute.

gcc/testsuite/ChangeLog:

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