https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78122
janus at gcc dot gnu.org changed:
What|Removed |Added
Depends on||55207
--- Comment #5 from janus at gcc dot gnu.org ---
I think the test case is valid. A workaround for the ICE is to declare 'a' with
the SAVE attribute.
According to the F08 standard every variable in the main program implicitly
gets the SAVE attribute, which is the subject of PR55207.
I assume the regression is caused by r208668.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55207
[Bug 55207] [F08] Variables declared in the main program should implicitly get
the SAVE attribute