This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/13940] [gfortran] ICE with hex-values
- From: "Tobias dot Schlueter at physik dot uni-muenchen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Apr 2004 13:23:42 -0000
- Subject: [Bug fortran/13940] [gfortran] ICE with hex-values
- References: <20040131023925.13940.bdavis9659@comcast.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de 2004-04-30 13:23 -------
(In reply to comment #2)
> 2915 if (gfc_find_symbol (name, NULL, 1, &sym))
> 2916 return MATCH_ERROR;
> 2917
> 2918 if (sym->attr.flavor != FL_PARAMETER)
>
> sym is NULL at this point causing the seg fault.
(this is from fortran/match.c)
I'm submitting a fix for the ICE. It remains the issue of supporting hexadecimal
constants in DATA statements. With this patch Volker's test gives:
In file pr13940.f90:3
DATA A /X'1'/
1
Error: Symbol 'x' must be a PARAMETER in DATA statement at (1)
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |Tobias dot Schlueter at
| |physik dot uni-muenchen dot
| |de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13940