[Bug fortran/78122] [5/6/7 Regression] [F08] ICE in get, at cgraph.h:395

2016-11-21 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78122

Jeffrey A. Law  changed:

   What|Removed |Added

   Priority|P3  |P4
 CC||law at redhat dot com

[Bug fortran/78122] [5/6/7 Regression] [F08] ICE in get, at cgraph.h:395

2016-11-07 Thread janus at gcc dot gnu.org
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