This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/34514] Accepts invalid: Dimensions specified for N after initialisation
- From: "dominiq at lps dot ens dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2007 15:04:19 -0000
- Subject: [Bug fortran/34514] Accepts invalid: Dimensions specified for N after initialisation
- References: <bug-34514-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from dominiq at lps dot ens dot fr 2007-12-21 15:04 -------
With the patch in http://gcc.gnu.org/ml/fortran/2007-12/msg00221.html, the test
case #1 gives:
pr34514.f90:2.14:
dimension :: n(3)
1
Error: Dimensions specified for n at (1) after its initialisation
pr34514.f90:3.17:
parameter (n = 42)
1
Error: Initializing already initialized variable at (1)
pr34514.f90:1.12:
integer :: n = 4
1
Error: Function 'n' at (1) cannot have an initializer
pr34514.f90:1.12:
integer :: n = 4
1
Error: 'n' at (1) is not a VALUE
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34514