This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/15031] [gfortran] initialization expressions impose ordering restrictions
- From: "Tobias dot Schlueter at physik dot uni-muenchen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 May 2004 12:22:09 -0000
- Subject: [Bug fortran/15031] [gfortran] initialization expressions impose ordering restrictions
- References: <20040420212733.15031.Tobias.Schlueter@physik.uni-muenchen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de 2004-05-07 12:22 -------
>From a private conversation with Douglas Cox tcc at sentex dot net:
---------------------------
I don't have a copy of the standard, but I just uploaded your code to Lahey's
source check page, and it found 2 errors. So I think the comment on the G95
Status page is probably justified. I am willing to listen to your evidence on
the question, though. The output in part was:
<begin included test>
Lahey/Fujitsu Fortran 95 Source Check Output
Compiling program unit a at line 1:
2255-S: "SOURCE.F90", line 2: Shape of actual argument for intrinsic
function 'SIZE' invalid.
2006-I: "SOURCE.F90", line 2: 'c' is declared but never referenced.
1143-S: "SOURCE.F90", line 2, column 19: Missing constant expression.
Encountered 2 errors, 0 warnings, 1 information in file SOURCE.F90.
Compiling file SOURCE.F90.
Lahey/Fujitsu Fortran 95 Listing and Cross Reference
Source file : SOURCE.F90
External subroutine subprogram "a"
(line-no.)(nest)
1 SUBROUTINE a(b)
2 INTEGER :: c = SIZE(b)
3 REAL :: b(5)
4 END SUBROUTINE
Diagnostic messages: program name(a)
2255-S: "SOURCE.F90", line 2: Shape of actual argument for intrinsic
function 'SIZE' invalid.
2006-I: "SOURCE.F90", line 2: 'c' is declared but never referenced.
1143-S: "SOURCE.F90", line 2, column 19: Missing constant expression.
Procedure information
Lines : 4
Statements : 4
<end included text>
----------------------------
I will double-check the standard, obviously ifc is not sufficient to evaluate
standard compliance.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15031