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/13940] [gfortran] ICE with hex-values


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


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