public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/61960] New: internal compiler error: in gfc_conv_component_ref
@ 2014-07-30 10:00 geertjan.bex at uhasselt dot be
  2014-08-02 11:31 ` [Bug fortran/61960] " dominiq at lps dot ens.fr
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: geertjan.bex at uhasselt dot be @ 2014-07-30 10:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61960

            Bug ID: 61960
           Summary: internal compiler error: in gfc_conv_component_ref
           Product: gcc
           Version: 4.8.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: geertjan.bex at uhasselt dot be

Created attachment 33210
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33210&action=edit
directory containing source to reproduce, and output of compiler

When compiling, the compiler crashes with the following error:
internal compiler error: in gfc_conv_component_ref, at
fortran/trans-expr.c:1574
Compiler command & options:
gfortran -v -save-temps -O2 -fno-strict-aliasing -fwrapv
-fno-aggressive-loop-optimizations  -g -Wall -Wextra -c data_func_mod.f90
refactored_func.f90

Detail and source code can be found in the file 'output.txt' that is included
in the gzipped tar file.

The OS is:
Linux version 2.6.32-358.el6.x86_64
(mockbuild@x86-022.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red
Hat 4.4.7-3) (GCC) ) #1 SMP Tue Jan 29 11:47:41 EST 2013

However, the crash can be reproduced with GCC 4.7.2 on the same system, and
4.8.2-19ubuntu1 on:
Linux version 3.13.0-32-generic (buildd@roseapple) (gcc version 4.8.2 (Ubuntu
4.8.2-19ubuntu1) ) #57-Ubuntu SMP Tue Jul 15 03:51:12 UTC 2014

Best, -gjb-


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/61960] internal compiler error: in gfc_conv_component_ref
  2014-07-30 10:00 [Bug fortran/61960] New: internal compiler error: in gfc_conv_component_ref geertjan.bex at uhasselt dot be
@ 2014-08-02 11:31 ` dominiq at lps dot ens.fr
  2015-02-22 20:10 ` edlinger at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-08-02 11:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61960

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-08-02
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Reduced test

module data_func_mod
    implicit none
    integer, parameter :: sp = 4
    type :: data_type
        real(kind=sp), pointer, dimension(:, :) :: data => null()
        integer :: nr_rows = 0, nr_cols = 0
    end type data_type

contains

    function get_row(this, i) result(row)
        implicit none
        type(data_type), intent(in) :: this
        integer, intent(in) :: i
        real(kind=sp), dimension(this%nr_cols) :: row
        row = this%data(:, i)
    end function get_row

    subroutine print_matrix(m)
        implicit none
        class(data_type), intent(in) :: m
        integer :: i
        character(len=20) :: fmt_str
            write (unit=6, fmt=fmt_str) get_row(m, 1)
    end subroutine print_matrix

end module data_func_mod

Before revision r182107 (2011-12-08) compiling the test gave the error

pr61960_red.f90:24.48:

            write (unit=6, fmt=fmt_str) get_row(m, 1)
                                                1
Error: Type mismatch in argument 'this' at (1); passed CLASS(data_type) to
TYPE(data_type)

At revision r183001 (2012-01-09) the original and the reduced tests compile up
to revision r183968 (2012-02-03). From revision r184278 (2012-02-15) up to
trunk the compilation gives an ICE in trans-expr.c.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/61960] internal compiler error: in gfc_conv_component_ref
  2014-07-30 10:00 [Bug fortran/61960] New: internal compiler error: in gfc_conv_component_ref geertjan.bex at uhasselt dot be
  2014-08-02 11:31 ` [Bug fortran/61960] " dominiq at lps dot ens.fr
@ 2015-02-22 20:10 ` edlinger at gcc dot gnu.org
  2015-02-27 22:33 ` dominiq at lps dot ens.fr
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: edlinger at gcc dot gnu.org @ 2015-02-22 20:10 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61960

--- Comment #2 from Bernd Edlinger <edlinger at gcc dot gnu.org> ---
Author: edlinger
Date: Sun Feb 22 19:38:53 2015
New Revision: 220899

URL: https://gcc.gnu.org/viewcvs?rev=220899&root=gcc&view=rev
Log:
2015-02-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR fortran/64980
        PR fortran/61960
        * trans-expr.c (gfc_apply_interface_mapping_to_expr): Remove mapping
        for component references to class objects.
        (gfc_conv_procedure_call): Compare the class by name.

testsuite:
2015-02-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR fortran/64980
        PR fortran/61960
        * gfortran.dg/pr61960.f90: New.
        * gfortran.dg/pr64230.f90: New.
        * gfortran.dg/pr64980.f03: New.

Added:
    trunk/gcc/testsuite/gfortran.dg/pr61960.f90
    trunk/gcc/testsuite/gfortran.dg/pr64230.f90
    trunk/gcc/testsuite/gfortran.dg/pr64980.f03
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/61960] internal compiler error: in gfc_conv_component_ref
  2014-07-30 10:00 [Bug fortran/61960] New: internal compiler error: in gfc_conv_component_ref geertjan.bex at uhasselt dot be
  2014-08-02 11:31 ` [Bug fortran/61960] " dominiq at lps dot ens.fr
  2015-02-22 20:10 ` edlinger at gcc dot gnu.org
@ 2015-02-27 22:33 ` dominiq at lps dot ens.fr
  2015-08-30 15:28 ` dominiq at lps dot ens.fr
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-02-27 22:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61960

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING

--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Is not this PR fixed by revision r220899?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/61960] internal compiler error: in gfc_conv_component_ref
  2014-07-30 10:00 [Bug fortran/61960] New: internal compiler error: in gfc_conv_component_ref geertjan.bex at uhasselt dot be
                   ` (2 preceding siblings ...)
  2015-02-27 22:33 ` dominiq at lps dot ens.fr
@ 2015-08-30 15:28 ` dominiq at lps dot ens.fr
  2015-09-03  9:13 ` geertjan.bex at uhasselt dot be
  2015-09-29 17:24 ` dominiq at lps dot ens.fr
  5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-08-30 15:28 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61960

--- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> Is not this PR fixed by revision r220899?

PING! Without answer I'll close this PR as FIXED.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/61960] internal compiler error: in gfc_conv_component_ref
  2014-07-30 10:00 [Bug fortran/61960] New: internal compiler error: in gfc_conv_component_ref geertjan.bex at uhasselt dot be
                   ` (3 preceding siblings ...)
  2015-08-30 15:28 ` dominiq at lps dot ens.fr
@ 2015-09-03  9:13 ` geertjan.bex at uhasselt dot be
  2015-09-29 17:24 ` dominiq at lps dot ens.fr
  5 siblings, 0 replies; 7+ messages in thread
From: geertjan.bex at uhasselt dot be @ 2015-09-03  9:13 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61960

--- Comment #5 from Geert Jan Bex <geertjan.bex at uhasselt dot be> ---
Dear,

Sorry, this is too long ago, I've lost the context of this.

I guess it is okay to consider the issue solved.

Thanks, best regards, -gjb-

On Sun, Aug 30, 2015 at 5:28 PM, dominiq at lps dot ens.fr <
gcc-bugzilla@gcc.gnu.org> wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61960
>
> --- Comment #4 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> > Is not this PR fixed by revision r220899?
>
> PING! Without answer I'll close this PR as FIXED.
>
> --
> You are receiving this mail because:
> You reported the bug.
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug fortran/61960] internal compiler error: in gfc_conv_component_ref
  2014-07-30 10:00 [Bug fortran/61960] New: internal compiler error: in gfc_conv_component_ref geertjan.bex at uhasselt dot be
                   ` (4 preceding siblings ...)
  2015-09-03  9:13 ` geertjan.bex at uhasselt dot be
@ 2015-09-29 17:24 ` dominiq at lps dot ens.fr
  5 siblings, 0 replies; 7+ messages in thread
From: dominiq at lps dot ens.fr @ 2015-09-29 17:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61960

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> I guess it is okay to consider the issue solved.

So closing as FIXED.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-09-29 17:24 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-30 10:00 [Bug fortran/61960] New: internal compiler error: in gfc_conv_component_ref geertjan.bex at uhasselt dot be
2014-08-02 11:31 ` [Bug fortran/61960] " dominiq at lps dot ens.fr
2015-02-22 20:10 ` edlinger at gcc dot gnu.org
2015-02-27 22:33 ` dominiq at lps dot ens.fr
2015-08-30 15:28 ` dominiq at lps dot ens.fr
2015-09-03  9:13 ` geertjan.bex at uhasselt dot be
2015-09-29 17:24 ` dominiq at lps dot ens.fr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).