This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/78122] [5/6/7 Regression] [F08] ICE in get, at cgraph.h:395
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 07 Nov 2016 20:25:21 +0000
- Subject: [Bug fortran/78122] [5/6/7 Regression] [F08] ICE in get, at cgraph.h:395
- Auto-submitted: auto-generated
- References: <bug-78122-4@http.gcc.gnu.org/bugzilla/>
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