This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35680] [4.3/4.4 regression] ICE on invalid transfer in variable declaration
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Sep 2008 08:55:13 -0000
- Subject: [Bug fortran/35680] [4.3/4.4 regression] ICE on invalid transfer in variable declaration
- References: <bug-35680-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pault at gcc dot gnu dot org 2008-09-17 08:55 -------
(In reply to comment #4)
> 4.3.2 is released, changing milestones to 4.3.3.
>
Although this passes Lahey with only a warning that the return value is not
set, it manifestly is standard defying according to 7.1.6.2
A variable in a specification expression shall have its type and type
parameters, if any, specified by a previous declaration in the same scoping
unit, or by the implicit typing rules in effect for the scoping unit, or by
host or use association. If a variable in a specification expression is typed
by
the implicit typing rules, its appearance in any subsequent type declaration
statement shall confirm the implied type and type parameters.
Inverting the order of the declarations should make the code legal.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35680