[Bug fortran/32884] ICE: Accessing non-local variable in PURE function

2007-07-24 Thread burnus at gcc dot gnu dot org
--- Comment #3 from burnus at gcc dot gnu dot org 2007-07-24 18:53 --- This is a translation bug: msgid "Cannot assign to variable '%s' in PURE procedure at %L" msgstr "In PURE-Prozedur bei %L kann nicht an Variable »%s« zugewiesen werden" As %L / %s is reverted, gfortran crashes. Sol

[Bug fortran/32884] ICE: Accessing non-local variable in PURE function

2007-07-24 Thread burnus at gcc dot gnu dot org
--- Comment #2 from burnus at gcc dot gnu dot org 2007-07-24 18:28 --- Others cannot reproduce it (on i686 & x86_64), but here I can with gfortran-4.1 & 4.2 of SUSE, with the vanilla 4.2 and with 4.3. The problem is for whatever reason the "&code->expr->where" argument to gfc_error(). I

[Bug fortran/32884] ICE: Accessing non-local variable in PURE function

2007-07-24 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2007-07-24 17:33 --- Seemingly the error is detected and only on writing the error the segmentation fault occurs: ==494== Invalid read of size 8 ==494==at 0x41D398: show_locus (error.c:171) ==494==by 0x41D29D: error_print (error.