This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/30408] [gfortran, 4.3 regression]: ICE on valid with -Wall
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jan 2007 18:55:36 -0000
- Subject: [Bug fortran/30408] [gfortran, 4.3 regression]: ICE on valid with -Wall
- References: <bug-30408-2736@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from kargl at gcc dot gnu dot org 2007-01-08 18:55 -------
This is related to an undocumented warning flag. In options.c, gfortran sets
several warnings to on. One of these is
gfc_option.warn_character_truncation = 1;
If I change this to 0, then your code with -Wall compiles. Fortunately,
gfc_option.warn_character_truncation appears only in decl.c and
resolve.c, and occurs exactly once in both files. A few things need to
occur:
1) Add a -W[no-]character-truncation option.
2) Document the option.
3) Fix Martin's bug
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30408