public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/106946] New: [10/11/12/13 Regression] ICE in resolve_component, at fortran/resolve.cc:14726
@ 2022-09-14 18:53 gscfq@t-online.de
  2022-09-14 19:59 ` [Bug fortran/106946] " marxin at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gscfq@t-online.de @ 2022-09-14 18:53 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106946
           Summary: [10/11/12/13 Regression] ICE in resolve_component, at
                    fortran/resolve.cc:14726
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started with r9 between 20180819 and 20180826 :


$ cat z1.f90
program p
   type t
      class(u), allocatable :: a b
   end type
end


$ cat z2.f90
module m
   type t
      class(u), allocatable :: a b
   end type
end


$ gfortran-9-20180819 -c z1.f90
z1.f90:3:30:

3 |       class(u), allocatable :: a b
  |                              1
Error: Derived type at (1) has not been previously defined and so cannot appear
in a derived type definition


$ gfortran-13-20220911 -c z1.f90
z1.f90:3:33:

    3 |       class(u), allocatable :: a b
      |                                 1
Error: Syntax error in data declaration at (1)
z1.f90:1:9:

    1 | program p
      |         1
Error: Argument 'src' of '_copy' with PASS(src) at (1) must be of the derived
type '__class_p_U_a'
f951: internal compiler error: Segmentation fault
0xf386bf crash_signal
        ../../gcc/toplev.cc:314
0x8781c2 resolve_component
        ../../gcc/fortran/resolve.cc:14726
0x878ca2 resolve_fl_derived0
        ../../gcc/fortran/resolve.cc:15075
0x878fed resolve_fl_derived
        ../../gcc/fortran/resolve.cc:15207
0x872a67 resolve_symbol
        ../../gcc/fortran/resolve.cc:15584
0x891d72 do_traverse_symtree
        ../../gcc/fortran/symbol.cc:4174
0x876034 resolve_types
        ../../gcc/fortran/resolve.cc:17534
0x8714ac gfc_resolve(gfc_namespace*)
        ../../gcc/fortran/resolve.cc:17649
0x8592a4 resolve_all_program_units
        ../../gcc/fortran/parse.cc:6606
0x8592a4 gfc_parse_file()
        ../../gcc/fortran/parse.cc:6862
0x8a7c6f gfc_be_parse_file
        ../../gcc/fortran/f95-lang.cc:229

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

* [Bug fortran/106946] [10/11/12/13 Regression] ICE in resolve_component, at fortran/resolve.cc:14726
  2022-09-14 18:53 [Bug fortran/106946] New: [10/11/12/13 Regression] ICE in resolve_component, at fortran/resolve.cc:14726 gscfq@t-online.de
@ 2022-09-14 19:59 ` marxin at gcc dot gnu.org
  2022-09-15  7:18 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-09-14 19:59 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-09-14
                 CC|                            |janus at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r9-2568-g00cad178a359da70.

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

* [Bug fortran/106946] [10/11/12/13 Regression] ICE in resolve_component, at fortran/resolve.cc:14726
  2022-09-14 18:53 [Bug fortran/106946] New: [10/11/12/13 Regression] ICE in resolve_component, at fortran/resolve.cc:14726 gscfq@t-online.de
  2022-09-14 19:59 ` [Bug fortran/106946] " marxin at gcc dot gnu.org
@ 2022-09-15  7:18 ` rguenth at gcc dot gnu.org
  2023-02-28 20:41 ` anlauf at gcc dot gnu.org
  2023-07-07 10:43 ` [Bug fortran/106946] [11/12/13/14 " rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-09-15  7:18 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |10.5
           Priority|P3                          |P4

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

* [Bug fortran/106946] [10/11/12/13 Regression] ICE in resolve_component, at fortran/resolve.cc:14726
  2022-09-14 18:53 [Bug fortran/106946] New: [10/11/12/13 Regression] ICE in resolve_component, at fortran/resolve.cc:14726 gscfq@t-online.de
  2022-09-14 19:59 ` [Bug fortran/106946] " marxin at gcc dot gnu.org
  2022-09-15  7:18 ` rguenth at gcc dot gnu.org
@ 2023-02-28 20:41 ` anlauf at gcc dot gnu.org
  2023-07-07 10:43 ` [Bug fortran/106946] [11/12/13/14 " rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: anlauf at gcc dot gnu.org @ 2023-02-28 20:41 UTC (permalink / raw)
  To: gcc-bugs

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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gcc dot gnu.org

--- Comment #2 from anlauf at gcc dot gnu.org ---
Minor remark: there's a memleak in gfc_find_derived_vtab that is plugged by

diff --git a/gcc/fortran/class.cc b/gcc/fortran/class.cc
index ae653e74437..3dd2d9db70b 100644
--- a/gcc/fortran/class.cc
+++ b/gcc/fortran/class.cc
@@ -2344,6 +2344,7 @@ gfc_find_derived_vtab (gfc_symbol *derived)
          vtab->attr.vtab = 1;
          vtab->attr.access = ACCESS_PUBLIC;
          gfc_set_sym_referenced (vtab);
+         free (name);
          name = xasprintf ("__vtype_%s", tname);

          gfc_find_symbol (name, ns, 0, &vtype);

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

* [Bug fortran/106946] [11/12/13/14 Regression] ICE in resolve_component, at fortran/resolve.cc:14726
  2022-09-14 18:53 [Bug fortran/106946] New: [10/11/12/13 Regression] ICE in resolve_component, at fortran/resolve.cc:14726 gscfq@t-online.de
                   ` (2 preceding siblings ...)
  2023-02-28 20:41 ` anlauf at gcc dot gnu.org
@ 2023-07-07 10:43 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:43 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

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

end of thread, other threads:[~2023-07-07 10:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-14 18:53 [Bug fortran/106946] New: [10/11/12/13 Regression] ICE in resolve_component, at fortran/resolve.cc:14726 gscfq@t-online.de
2022-09-14 19:59 ` [Bug fortran/106946] " marxin at gcc dot gnu.org
2022-09-15  7:18 ` rguenth at gcc dot gnu.org
2023-02-28 20:41 ` anlauf at gcc dot gnu.org
2023-07-07 10:43 ` [Bug fortran/106946] [11/12/13/14 " rguenth 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).