public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/57305] New: ICE with warnings and unlimited polymorphic (incorrect code)
@ 2013-05-16 18:39 vladimir.fuka at gmail dot com
  2013-05-16 19:02 ` [Bug fortran/57305] " vladimir.fuka at gmail dot com
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: vladimir.fuka at gmail dot com @ 2013-05-16 18:39 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57305

            Bug ID: 57305
           Summary: ICE with warnings and unlimited polymorphic (incorrect
                    code)
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vladimir.fuka at gmail dot com

Created attachment 30135
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30135&action=edit
source

The attached code produces ICE with recent build of 4.8:
 gfortran ice6.f90  -fopenmp -Wall

f951: internal compiler error: NeoprĂĄvnÄĂ˝ pĹĂ­stup do pamÄi (SIGSEGV)
0x8ba79f crash_signal
        ../../gcc-4.8-20130509/gcc/toplev.c:332
0x5d6021 __gmpz_get_ui
        /usr/include/gmp.h:1744
0x5d6021 gfc_target_expr_size(gfc_expr*)
        ../../gcc-4.8-20130509/gcc/fortran/target-memory.c:143
0x5445cd gfc_calculate_transfer_sizes(gfc_expr*, gfc_expr*, gfc_expr*, unsigned
long*, unsigned long*, unsigned long*)
        ../../gcc-4.8-20130509/gcc/fortran/check.c:4028
0x544788 gfc_check_transfer(gfc_expr*, gfc_expr*, gfc_expr*)
        ../../gcc-4.8-20130509/gcc/fortran/check.c:4093
0x56dffa check_specific
        ../../gcc-4.8-20130509/gcc/fortran/intrinsic.c:3928
0x57ad1e gfc_intrinsic_func_interface(gfc_expr*, int)
        ../../gcc-4.8-20130509/gcc/fortran/intrinsic.c:4144
0x5b690f resolve_unknown_f
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:2602
0x5b690f resolve_function
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:3204
0x5b690f gfc_resolve_expr(gfc_expr*)
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:6544
0x5bc0a9 resolve_code
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:10135
0x5bbe8b gfc_resolve_blocks(gfc_code*, gfc_namespace*)
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:9449
0x5bc0ea resolve_code
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:10121
0x5bec4e resolve_codes
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:14975
0x5afb22 gfc_resolve
        ../../gcc-4.8-20130509/gcc/fortran/resolve.c:15003
0x5a4662 resolve_all_program_units
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:4406
0x5a4662 gfc_parse_file()
        ../../gcc-4.8-20130509/gcc/fortran/parse.c:4673
0x5dfd15 gfc_be_parse_file
        ../../gcc-4.8-20130509/gcc/fortran/f95-lang.c:189
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.
>From gcc-bugs-return-422466-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu May 16 18:45:50 2013
Return-Path: <gcc-bugs-return-422466-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 17093 invoked by alias); 16 May 2013 18:45:50 -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 17051 invoked by uid 48); 16 May 2013 18:45:46 -0000
From: "hjl.tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/57303] [4.7/4.8/4.9 Regression] struct miscompiled at -O1 and above
Date: Thu, 16 May 2013 18:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: hjl.tools at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-57303-4-fjYZDgY0wd@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57303-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57303-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: 2013-05/txt/msg01139.txt.bz2
Content-length: 529

http://gcc.gnu.org/bugzilla/show_bug.cgi?idW303

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
statement_sink_location in

          /* A killing definition is not a use.  */
          if (gimple_assign_single_p (use_stmt)
              && gimple_vdef (use_stmt)
              && operand_equal_p (gimple_assign_lhs (stmt),
                                  gimple_assign_lhs (use_stmt), 0))
            continue;

doesn't check:

(gdb) call debug_gimple_stmt (use_stmt)
# .MEM_11 = VDEF <.MEM_10>
y.f0 = y.f0;


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

end of thread, other threads:[~2014-09-03  6:42 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-16 18:39 [Bug fortran/57305] New: ICE with warnings and unlimited polymorphic (incorrect code) vladimir.fuka at gmail dot com
2013-05-16 19:02 ` [Bug fortran/57305] " vladimir.fuka at gmail dot com
2013-05-16 19:02 ` vladimir.fuka at gmail dot com
2013-06-11 15:51 ` [Bug fortran/57305] ICE with warnings and unlimited polymorphic dominiq at lps dot ens.fr
2013-08-21 13:18 ` [Bug fortran/57305] [OOP] ICE when calling SIZEOF on an unlimited polymorphic variable janus at gcc dot gnu.org
2013-08-21 13:53 ` janus at gcc dot gnu.org
2013-08-21 14:37 ` janus at gcc dot gnu.org
2013-08-21 15:47 ` janus at gcc dot gnu.org
2013-08-21 18:03 ` janus at gcc dot gnu.org
2014-03-15 14:17 ` dominiq at lps dot ens.fr
2014-03-15 17:18 ` janus at gcc dot gnu.org
2014-03-15 20:17 ` dominiq at lps dot ens.fr
2014-07-26 12:40 ` dominiq at lps dot ens.fr
2014-07-26 17:50 ` burnus at gcc dot gnu.org
2014-07-26 17:57 ` burnus at gcc dot gnu.org
2014-07-26 18:00 ` burnus at gcc dot gnu.org
2014-09-03  6:42 ` burnus 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).