This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/34514] Accepts invalid: Dimensions specified for N after initialisation



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]