public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/108453] New: [10/11/12/13 Regression] ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5361
@ 2023-01-18 18:27 gscfq@t-online.de
  2023-01-19  7:47 ` [Bug fortran/108453] " rguenth at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: gscfq@t-online.de @ 2023-01-18 18:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108453
           Summary: [10/11/12/13 Regression] ICE in gfc_trans_use_stmts,
                    at fortran/trans-decl.cc:5361
           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 r6 :


$ cat z1.f90
module m
   type t
   end type
end
program p
   use m, only: t
   common t
end


$ cat z2.f90
module m
   type t
   end type
end
program p
   use m, only: t
   common /xc/ t
end


$ cat z3.f90
module m
   type t
   end type
end
program p
   use m
   common t
end


$ gfortran-5 -c z3.f90
z3.f90:7:11:

    common t
           1
Error: Cannot change attributes of USE-associated symbol t at (1)


$ gfortran-13-20230115 -c z3.f90
$
$ gfortran-13-20230115 -c z1.f90
z1.f90:6:7:

    6 |    use m, only: t
      |       1
internal compiler error: in gfc_trans_use_stmts, at fortran/trans-decl.cc:5361
0x8a707e gfc_trans_use_stmts
        ../../gcc/fortran/trans-decl.cc:5360
0x8a783b gfc_generate_function_code(gfc_namespace*)
        ../../gcc/fortran/trans-decl.cc:7837
0x82968e translate_all_program_units
        ../../gcc/fortran/parse.cc:6721
0x82968e gfc_parse_file()
        ../../gcc/fortran/parse.cc:7027
0x876eff gfc_be_parse_file
        ../../gcc/fortran/f95-lang.cc:229

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

end of thread, other threads:[~2023-02-05 18:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-18 18:27 [Bug fortran/108453] New: [10/11/12/13 Regression] ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5361 gscfq@t-online.de
2023-01-19  7:47 ` [Bug fortran/108453] " rguenth at gcc dot gnu.org
2023-01-19 14:25 ` [Bug fortran/108453] [10/11/12/13 Regression] ICE in gfc_trans_use_stmts, at fortran/trans-decl.cc:5361 since r6-3704-g2b3f52a2d0fb22ba marxin at gcc dot gnu.org
2023-01-27 22:20 ` anlauf at gcc dot gnu.org
2023-01-28 17:08 ` anlauf at gcc dot gnu.org
2023-01-28 20:58 ` cvs-commit at gcc dot gnu.org
2023-02-02 21:01 ` cvs-commit at gcc dot gnu.org
2023-02-04 15:43 ` cvs-commit at gcc dot gnu.org
2023-02-05 18:55 ` cvs-commit at gcc dot gnu.org
2023-02-05 18:57 ` anlauf 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).