public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/61952] New: ICE allocattion of array of type of type
@ 2014-07-29 15:18 valeryweber at hotmail dot com
  2014-08-02 11:39 ` [Bug fortran/61952] " dominiq at lps dot ens.fr
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: valeryweber at hotmail dot com @ 2014-07-29 15:18 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61952
           Summary: ICE allocattion of array of type of type
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: valeryweber at hotmail dot com

Dear All

the following code is ICEing with gfortran 4.9.1

v

>gfortran-4.9.1 -c  bug.F90 
bug.F90: In function ‘sm_multiply_a’:
bug.F90:29:0: internal compiler error: in gfc_conv_descriptor_data_set, at
fortran/trans-array.c:171
     ALLOCATE( matrices_a( n_push_tot + 1 ), matrices_b( n_push_tot + 1 ),
STAT=istat )
 ^
0x5ebe16 gfc_conv_descriptor_data_set
    ../../gcc-4.9.1/gcc/fortran/trans-array.c:171
0x5ebe16 gfc_conv_descriptor_data_set(stmtblock_t*, tree_node*, tree_node*)
    ../../gcc-4.9.1/gcc/fortran/trans-array.c:166
0x5f37cd structure_alloc_comps
    ../../gcc-4.9.1/gcc/fortran/trans-array.c:7785
0x5f2e8b structure_alloc_comps
    ../../gcc-4.9.1/gcc/fortran/trans-array.c:7978
0x5f311f structure_alloc_comps
    ../../gcc-4.9.1/gcc/fortran/trans-array.c:7646
0x5f4606 gfc_array_allocate(gfc_se*, gfc_expr*, tree_node*, tree_node*,
tree_node*, tree_node*, tree_node*, tree_node**, gfc_expr*, gfc_typespec*)
    ../../gcc-4.9.1/gcc/fortran/trans-array.c:5322
0x63c0b9 gfc_trans_allocate(gfc_code*)
    ../../gcc-4.9.1/gcc/fortran/trans-stmt.c:4952
0x5e89c7 trans_code
    ../../gcc-4.9.1/gcc/fortran/trans.c:1794
0x6082e2 gfc_generate_function_code(gfc_namespace*)
    ../../gcc-4.9.1/gcc/fortran/trans-decl.c:5653
0x5e9f01 gfc_generate_module_code(gfc_namespace*)
    ../../gcc-4.9.1/gcc/fortran/trans.c:1995
0x5a7b48 translate_all_program_units
    ../../gcc-4.9.1/gcc/fortran/parse.c:4940
0x5a7b48 gfc_parse_file()
    ../../gcc-4.9.1/gcc/fortran/parse.c:5150
0x5e4ca5 gfc_be_parse_file
    ../../gcc-4.9.1/gcc/fortran/f95-lang.c:212
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.

>cat bug.F90
MODULE distribution_types
  ABSTRACT INTERFACE
     FUNCTION dist_map_blk_to_proc_func ( row, col, nrow_tot, ncol_tot,
proc_grid ) RESULT( reslt )
       INTEGER, INTENT( IN ) :: row, col, nrow_tot, ncol_tot
       INTEGER, DIMENSION( : ), INTENT( IN ) :: proc_grid
       INTEGER, DIMENSION( : ), ALLOCATABLE :: reslt
     END FUNCTION dist_map_blk_to_proc_func
  END INTERFACE
  TYPE, PUBLIC :: dist_type
     INTEGER, DIMENSION( : ), ALLOCATABLE :: task_coords
     PROCEDURE( dist_map_blk_to_proc_func ), NOPASS, POINTER :: map_blk_to_proc
=> NULL( )
  END TYPE dist_type
END MODULE distribution_types

MODULE sparse_matrix_types
  USE distribution_types,  ONLY : dist_type
  TYPE, PUBLIC :: sm_type
     TYPE( dist_type ) :: dist
  END TYPE sm_type
END MODULE sparse_matrix_types

MODULE sparse_matrix_multiply_a
  USE sparse_matrix_types,      ONLY : sm_type
CONTAINS
  SUBROUTINE sm_multiply_a (  )
    INTEGER :: n_push_tot, istat
    TYPE( sm_type ), DIMENSION( : ), ALLOCATABLE :: matrices_a, matrices_b
    n_push_tot =2
    ALLOCATE( matrices_a( n_push_tot + 1 ), matrices_b( n_push_tot + 1 ),
STAT=istat )
  END SUBROUTINE sm_multiply_a
END MODULE sparse_matrix_multiply_a
>From gcc-bugs-return-457328-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jul 29 16:05:28 2014
Return-Path: <gcc-bugs-return-457328-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31613 invoked by alias); 29 Jul 2014 15:31:26 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 14552 invoked by uid 48); 29 Jul 2014 15:15:38 -0000
From: "ramana at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/61948] [ARM] [4.10 regression] ICE with DImode shift by 1 bit (in copyprop_hardreg_forward_1)
Date: Tue, 29 Jul 2014 15:31:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.10.0
X-Bugzilla-Keywords: ice-on-valid-code
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ramana at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: cbaylis at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: keywords cc cf_known_to_work version short_desc
Message-ID: <bug-61948-4-4cUdj88Jbi@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61948-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61948-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-07/txt/msg01919.txt.bz2
Content-length: 1261

https://gcc.gnu.org/bugzilla/show_bug.cgi?ida948

Ramana Radhakrishnan <ramana at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
                 CC|                            |ramana at gcc dot gnu.org
      Known to work|                            |4.8.3, 4.9.0, 4.9.1
            Version|4.9.0                       |4.10.0
            Summary|[ARM] [4.9 regression] ICE  |[ARM] [4.10 regression] ICE
                   |with DImode shift by 1 bit  |with DImode shift by 1 bit
                   |(in                         |(in
                   |copyprop_hardreg_forward_1) |copyprop_hardreg_forward_1)

--- Comment #1 from Ramana Radhakrishnan <ramana at gcc dot gnu.org> ---
I can't reproduce this on the FSF 4.9 branch but do see it failing on trunk
with Thumb2 and I suspect this to be due to my change to allow any old register
for DImode values in Thumb2.

Please remember to fill in Keywords, Known to Work, Known to Fail and all
command line options needed to reproduce this issue.


Reproduced on trunk with
-march=armv7-a -mfloat-abi=hard -mfpu=neon -mthumb


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

* [Bug fortran/61952] ICE allocattion of array of type of type
  2014-07-29 15:18 [Bug fortran/61952] New: ICE allocattion of array of type of type valeryweber at hotmail dot com
@ 2014-08-02 11:39 ` dominiq at lps dot ens.fr
  2014-09-19  8:56 ` dominiq at lps dot ens.fr
  2014-12-17 20:12 ` janus at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-08-02 11:39 UTC (permalink / raw)
  To: gcc-bugs

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

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> ---
Confirmed from 4.5 up to trunk (4.10, r213515).


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

* [Bug fortran/61952] ICE allocattion of array of type of type
  2014-07-29 15:18 [Bug fortran/61952] New: ICE allocattion of array of type of type valeryweber at hotmail dot com
  2014-08-02 11:39 ` [Bug fortran/61952] " dominiq at lps dot ens.fr
@ 2014-09-19  8:56 ` dominiq at lps dot ens.fr
  2014-12-17 20:12 ` janus at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dominiq at lps dot ens.fr @ 2014-09-19  8:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
*** Bug 63294 has been marked as a duplicate of this bug. ***


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

* [Bug fortran/61952] ICE allocattion of array of type of type
  2014-07-29 15:18 [Bug fortran/61952] New: ICE allocattion of array of type of type valeryweber at hotmail dot com
  2014-08-02 11:39 ` [Bug fortran/61952] " dominiq at lps dot ens.fr
  2014-09-19  8:56 ` dominiq at lps dot ens.fr
@ 2014-12-17 20:12 ` janus at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: janus at gcc dot gnu.org @ 2014-12-17 20:12 UTC (permalink / raw)
  To: gcc-bugs

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

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |janus at gcc dot gnu.org
         Resolution|---                         |DUPLICATE

--- Comment #3 from janus at gcc dot gnu.org ---
The ICE here is also fixed by the patch for PR 64173, which shows that it is
indeed a duplicate.

*** This bug has been marked as a duplicate of bug 64173 ***


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

end of thread, other threads:[~2014-12-17 20:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-29 15:18 [Bug fortran/61952] New: ICE allocattion of array of type of type valeryweber at hotmail dot com
2014-08-02 11:39 ` [Bug fortran/61952] " dominiq at lps dot ens.fr
2014-09-19  8:56 ` dominiq at lps dot ens.fr
2014-12-17 20:12 ` janus at gcc dot gnu.org

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).