[Bug fortran/83999] [8 Regression] ICE in gfc_trans_assignment_1, at fortran/trans-expr.c:10233

2018-01-23 Thread gs...@t-online.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83999

--- Comment #1 from G. Steinmetz  ---

Please note that a result with "type" instead of "class" gives :


$ cat z2.f90
program p
   type t
  integer :: a
   end type
   type(t) :: x(3)
   x = f()
   print *, x
contains
   elemental function f() result(z)
  type(t), pointer :: z(:)
   end
end


$ gfortran-8-20171112 -c z2.f90
z2.f90:9:3:

elemental function f() result(z)
   1
Error: ELEMENTAL function 'f' at (1) must have a scalar result


$ gfortran-8-20180121 -c z2.f90
z2.f90:9:3:

elemental function f() result(z)
   1
Error: ELEMENTAL function 'f' at (1) must have a scalar result

[Bug fortran/83999] [8 Regression] ICE in gfc_trans_assignment_1, at fortran/trans-expr.c:10233

2018-01-24 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83999

Richard Biener  changed:

   What|Removed |Added

   Target Milestone|--- |8.0

[Bug fortran/83999] [8 Regression] ICE in gfc_trans_assignment_1, at fortran/trans-expr.c:10233

2018-01-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83999

Jakub Jelinek  changed:

   What|Removed |Added

   Priority|P3  |P4
 Status|UNCONFIRMED |NEW
   Last reconfirmed||2018-01-24
 CC||jakub at gcc dot gnu.org,
   ||pault at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #2 from Jakub Jelinek  ---
Started with r254936.

[Bug fortran/83999] [8 Regression] ICE in gfc_trans_assignment_1, at fortran/trans-expr.c:10233

2018-01-24 Thread paul.richard.thomas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83999

--- Comment #3 from paul.richard.thomas at gmail dot com  ---
Hi Jakub,

I have made the changes to the types of the dtype elements that you
suggested. It led to a cast being needed in
trans-intrinsic.c(gfc_conv_intrinsic_rank) but, apart from that, the
changes were straightforward. Please find the updated patch attached.

OK for trunk?

Once I have committed this patch, I promise that I will stick to
regressions and bug fixes through to release :-)

Paul


On 24 January 2018 at 09:11, jakub at gcc dot gnu.org
 wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83999
>
> Jakub Jelinek  changed:
>
>What|Removed |Added
> 
>Priority|P3  |P4
>  Status|UNCONFIRMED |NEW
>Last reconfirmed||2018-01-24
>  CC||jakub at gcc dot gnu.org,
>||pault at gcc dot gnu.org
>  Ever confirmed|0   |1
>
> --- Comment #2 from Jakub Jelinek  ---
> Started with r254936.
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.

[Bug fortran/83999] [8 Regression] ICE in gfc_trans_assignment_1, at fortran/trans-expr.c:10233

2018-01-24 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83999

--- Comment #4 from Jakub Jelinek  ---
(In reply to paul.richard.tho...@gmail.com from comment #3)
> OK for trunk?

Ok, thanks.

[Bug fortran/83999] [8 Regression] ICE in gfc_trans_assignment_1, at fortran/trans-expr.c:10233

2018-01-25 Thread paul.richard.thomas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83999

--- Comment #5 from paul.richard.thomas at gmail dot com  ---
Hi Jakub,

Thanks for the OK and the help in getting the padding sorted out.

Committed as Committed revision 257065.

Paul

On 24 January 2018 at 20:26, Paul Richard Thomas
 wrote:
> Hi Jakub,
>
> I have made the changes to the types of the dtype elements that you
> suggested. It led to a cast being needed in
> trans-intrinsic.c(gfc_conv_intrinsic_rank) but, apart from that, the
> changes were straightforward. Please find the updated patch attached.
>
> OK for trunk?
>
> Once I have committed this patch, I promise that I will stick to
> regressions and bug fixes through to release :-)
>
> Paul
>
>
> On 24 January 2018 at 09:11, jakub at gcc dot gnu.org
>  wrote:
>> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83999
>>
>> Jakub Jelinek  changed:
>>
>>What|Removed |Added
>> 
>>Priority|P3  |P4
>>  Status|UNCONFIRMED |NEW
>>Last reconfirmed||2018-01-24
>>  CC||jakub at gcc dot gnu.org,
>>||pault at gcc dot gnu.org
>>  Ever confirmed|0   |1
>>
>> --- Comment #2 from Jakub Jelinek  ---
>> Started with r254936.
>>
>> --
>> You are receiving this mail because:
>> You are on the CC list for the bug.
>
>
>
> --
> "If you can't explain it simply, you don't understand it well enough"
> - Albert Einstein