This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/27998] character arrays: warn if erray constructor values have different lengths
- From: "tobias dot burnus at physik dot fu-berlin dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2006 12:26:41 -0000
- Subject: [Bug fortran/27998] character arrays: warn if erray constructor values have different lengths
- References: <bug-27998-1719@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from tobias dot burnus at physik dot fu-berlin dot de 2006-06-15 12:26 -------
> .....so, an error is definitely in order.
Maybe one could spit out a default warning and only with -std=f90 an error as
this is might be a commonly used Fortran extension. Or one simply always
regards it as error.
NAG's f95 gives even with -dusty an error
ifort gives not error/warning by default, unless -std95 is specified, then an
error message is given.
g95 gives no warning (not even with -Wall -Wextra) unless -std=f95 is used
(then it is an error)
Sun Studio's f95 gives always an error
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27998