]> git.ipfire.org Git - thirdparty/gcc.git/commit
Prevent future proc_ptr parsing issues in associate [PR102973]
authorAndre Vehreschild <vehre@gcc.gnu.org>
Tue, 13 Aug 2024 13:06:56 +0000 (15:06 +0200)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Wed, 14 Aug 2024 07:20:24 +0000 (09:20 +0200)
commit54be14bfd6e2dee7cb4e1b3c20dc2677093ee818
tree330c3fa5a6a814d1a1d27964bb6b7f5e3fdccf0c
parentbb2324769c5a03e275de00416659e624c97f1442
Prevent future proc_ptr parsing issues in associate [PR102973]

A global variable is set when proc_ptr parsing in an associate is
expected. In the case of an error, that flag was not reset, which is
fixed now.

gcc/fortran/ChangeLog:

PR fortran/102973

* match.cc (gfc_match_associate): Reset proc_ptr parsing flag on
error.
gcc/fortran/match.cc