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: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Dec 2007 14:00:58 -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 #2 from burnus at gcc dot gnu dot org 2007-12-21 14:00 -------
One-week-old, unreviewed patch:
http://gcc.gnu.org/ml/gcc-patches/2007-12/msg00821.html
Error messages for your example:
dimension :: n(3)
1
Error: Dimensions specified for n at (1) after its initialisation
aaa.f90:3.17:
parameter (n = 42)
1
Error: Initializing already initialized variable at (1)
aaa.f90:1.12:
integer :: n = 4
1
Error: Function 'n' at (1) cannot have an initializer
aaa.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