[Bug fortran/83980] Various issues with character length in array constructors

2018-03-22 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83980

Thomas Koenig  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||tkoenig at gcc dot gnu.org
 Resolution|--- |FIXED

--- Comment #7 from Thomas Koenig  ---
All test cases are fixed on trunk. Closing.

[Bug fortran/83980] Various issues with character length in array constructors

2018-02-21 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83980

--- Comment #6 from Dominique d'Humieres  ---
> The fix for pr83823 seems to have fixed the problems reported in
> comment #0 and comment #2 for 8.0 trunk.  The issues persist up to
> 7.2 (haven't checked 7.3).

Confirmed.

[Bug fortran/83980] Various issues with character length in array constructors

2018-02-20 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83980

--- Comment #5 from Harald Anlauf  ---
(In reply to Dominique d'Humieres from comment #4)
> The ICEs have replaced with errors between revisions r256574 (2018-01-12,
> ICE) and r256917 (2018-01-20, errors). What is surprising is that pr83823
> uses a similar construct, but does not give any error.

The fix for pr83823 seems to have fixed the problems reported in
comment #0 and comment #2 for 8.0 trunk.  The issues persist up to
7.2 (haven't checked 7.3).

[Bug fortran/83980] Various issues with character length in array constructors

2018-01-24 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83980

Dominique d'Humieres  changed:

   What|Removed |Added

   Priority|P3  |P4
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-01-24
 Ever confirmed|0   |1

--- Comment #4 from Dominique d'Humieres  ---
The ICEs have replaced with errors between revisions r256574 (2018-01-12, ICE)
and r256917 (2018-01-20, errors). What is surprising is that pr83823 uses a
similar construct, but does not give any error.

[Bug fortran/83980] Various issues with character length in array constructors

2018-01-23 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83980

--- Comment #3 from Harald Anlauf  ---
(In reply to Harald Anlauf from comment #2)
> I'll see if I can find related bugs.

Comment #2 looks like a dup of pr48890.

[Bug fortran/83980] Various issues with character length in array constructors

2018-01-23 Thread anlauf at gmx dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83980

Harald Anlauf  changed:

   What|Removed |Added

   Keywords||wrong-code

--- Comment #2 from Harald Anlauf  ---
A variant with wrong code:

program gfcbug147a
  implicit none
  type t
 character(len=8) :: name
  end type t
  type(t)  ,parameter :: o(*) = [ t('RADAR') ]
  character(*) ,parameter :: name = o(1)% name
  print *, len(o(1)% name)
  print *, len(  name)
end program gfcbug147a

% gfc-x gfcbug147a.f90 && ./a.out 
   8
   5

I'll see if I can find related bugs.

[Bug fortran/83980] Various issues with character length in array constructors

2018-01-22 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83980

kargl at gcc dot gnu.org changed:

   What|Removed |Added

 CC||kargl at gcc dot gnu.org

--- Comment #1 from kargl at gcc dot gnu.org ---
Harald, this looks like one or more of the bugs reported
by Gerhard Steinmetz.  I don't have time at the moment to
go through all PR's to see if I can find them.