public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/113917] New: ice in gfc_class_vptr_get
@ 2024-02-14  8:19 dcb314 at hotmail dot com
  2024-02-14  8:23 ` [Bug fortran/113917] " dcb314 at hotmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2024-02-14  8:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 113917
           Summary: ice in gfc_class_vptr_get
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 57420
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57420&action=edit
F90 source code

From the flang test suite at

https://github.com/llvm/llvm-project/tree/main/flang/test

the file ./Lower/HLFIR/elemental-array-ops.f90 does this:

test $ ~/gcc/results/bin/gfortran -c -w ./Lower/HLFIR/elemental-array-ops.f90
./Lower/HLFIR/elemental-array-ops.f90:247:9:

  247 |   x = (y)
      |         1
internal compiler error: Segmentation fault
0xf58d89 crash_signal(int)
        /home/dcb38/gcc/working/gcc/../../trunk.20210101/gcc/toplev.cc:317
0x87ade1 gfc_class_vptr_get(tree_node*)
       
/home/dcb38/gcc/working/gcc/../../trunk.20210101/gcc/fortran/trans-expr.cc:247
0x8944ea trans_class_vptr_len_assignment(stmtblock_t*, gfc_expr*, gfc_expr*,
gfc_se*, tree_node**, tree_node**, tree_node**)

with recent gfortran. The problem seems to exist since sometime before 2024016.

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

* [Bug fortran/113917] ice in gfc_class_vptr_get
  2024-02-14  8:19 [Bug fortran/113917] New: ice in gfc_class_vptr_get dcb314 at hotmail dot com
@ 2024-02-14  8:23 ` dcb314 at hotmail dot com
  2024-04-27 15:23 ` dcb314 at hotmail dot com
  2024-04-27 16:45 ` kargls at comcast dot net
  2 siblings, 0 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2024-02-14  8:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from David Binderman <dcb314 at hotmail dot com> ---
(In reply to David Binderman from comment #0)
>The problem seems to exist since sometime before 2024016.

That should be 20240116.

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

* [Bug fortran/113917] ice in gfc_class_vptr_get
  2024-02-14  8:19 [Bug fortran/113917] New: ice in gfc_class_vptr_get dcb314 at hotmail dot com
  2024-02-14  8:23 ` [Bug fortran/113917] " dcb314 at hotmail dot com
@ 2024-04-27 15:23 ` dcb314 at hotmail dot com
  2024-04-27 16:45 ` kargls at comcast dot net
  2 siblings, 0 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2024-04-27 15:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from David Binderman <dcb314 at hotmail dot com> ---
Bit more detail from valgrind:

==1450005== Invalid read of size 2
==1450005==    at 0x86B811: gfc_class_vptr_get(tree_node*) (trans-expr.cc:247)
==1450005==    by 0x883366: trans_class_vptr_len_assignment(stmtblock_t*,
gfc_expr*, gfc_expr*, gfc_se*, tree_node**, tree_node**, tree_node**)
(trans-expr.cc:10146)
==1450005==    by 0x8863A2: trans_class_assignment (trans-expr.cc:11969)
==1450005==    by 0x8863A2: gfc_trans_assignment_1(gfc_expr*, gfc_expr*, bool,
bool, bool, bool) (trans-expr.cc:12435)

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

* [Bug fortran/113917] ice in gfc_class_vptr_get
  2024-02-14  8:19 [Bug fortran/113917] New: ice in gfc_class_vptr_get dcb314 at hotmail dot com
  2024-02-14  8:23 ` [Bug fortran/113917] " dcb314 at hotmail dot com
  2024-04-27 15:23 ` dcb314 at hotmail dot com
@ 2024-04-27 16:45 ` kargls at comcast dot net
  2 siblings, 0 replies; 4+ messages in thread
From: kargls at comcast dot net @ 2024-04-27 16:45 UTC (permalink / raw)
  To: gcc-bugs

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

kargls at comcast dot net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargls at comcast dot net

--- Comment #3 from kargls at comcast dot net ---
Reduce testcase. 

subroutine unlimited_polymorphic_parenthesis(x, y)
  class(*), allocatable :: x(:)
  class(*), intent(in) :: y(:)
  x = (y)
end subroutine unlimited_polymorphic_parenthesis

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

end of thread, other threads:[~2024-04-27 16:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-14  8:19 [Bug fortran/113917] New: ice in gfc_class_vptr_get dcb314 at hotmail dot com
2024-02-14  8:23 ` [Bug fortran/113917] " dcb314 at hotmail dot com
2024-04-27 15:23 ` dcb314 at hotmail dot com
2024-04-27 16:45 ` kargls at comcast dot net

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