public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dominiq at lps dot ens.fr" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/61960] internal compiler error: in gfc_conv_component_ref
Date: Sat, 02 Aug 2014 11:31:00 -0000	[thread overview]
Message-ID: <bug-61960-4-rVZpdCFEtw@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-61960-4@http.gcc.gnu.org/bugzilla/>

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.


  reply	other threads:[~2014-08-02 11:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-30 10:00 [Bug fortran/61960] New: " geertjan.bex at uhasselt dot be
2014-08-02 11:31 ` dominiq at lps dot ens.fr [this message]
2015-02-22 20:10 ` [Bug fortran/61960] " 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-61960-4-rVZpdCFEtw@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).