[Bug fortran/31259] ICE on elemental character function

2007-10-19 Thread jvdelisle at gcc dot gnu dot org
--- Comment #4 from jvdelisle at gcc dot gnu dot org 2007-10-19 23:21 --- I see that this ICE has been fixed along the way. For the test case in comment #2 we still get three error messages, but this is because we do not disable resolve.c and more than one code path gets taken. There

[Bug fortran/31259] ICE on elemental character 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 13:28 --- The following patch works for the original example; it also works in principle for the additional example, but there the error message is printed three times. Index: gcc/fortran/expr.c ===

[Bug fortran/31259] ICE on elemental character function

2007-07-17 Thread dfranke at gcc dot gnu dot org
--- Comment #2 from dfranke at gcc dot gnu dot org 2007-07-17 10:38 --- Please note that the problem is not limited to character functions: $> cat pr31529.f90 print *, bar((/2, 3/)) contains elemental function bar(i) integer, intent(in) :: i integer :: a(i:i) a = i bar

[Bug fortran/31259] ICE on elemental character function

2007-03-29 Thread pault at gcc dot gnu dot org
--- Comment #1 from pault at gcc dot gnu dot org 2007-03-29 11:44 --- Yes, indeed; a dummy argument of an elemental procedure cannot appear in a specification expression. 12.7.1 Constraint: A dummy argument, or a subobject thereof, shall not appear in a specification-expr except as the