This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/22290] Optimize Assigned GOTO to cause error with -O1 or higher
- From: "fengwang at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jul 2005 07:42:11 -0000
- Subject: [Bug fortran/22290] Optimize Assigned GOTO to cause error with -O1 or higher
- References: <20050704082324.22290.fengwang@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From fengwang at gcc dot gnu dot org 2005-07-06 07:42 -------
(In reply to comment #4)
> And another question, all the variables which have initial values are treat
> as static. Is this reasonable?
Yes, this is reasonable. Confirm myself. In section 5.1 (Fortran95, Working
draft J3/97-007R2):
The presence of initialization implies that object-name is saved, except for
an object-name in a named common block or an object-name with the PARAMETER
attribute.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22290