public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/102311] New: [11/12 Regression] ICE in gfc_enforce_clean_symbol_state, at fortran/symbol.c:4278
@ 2021-09-13 17:26 gscfq@t-online.de
  2021-09-13 18:54 ` [Bug fortran/102311] " anlauf at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: gscfq@t-online.de @ 2021-09-13 17:26 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 102311
           Summary: [11/12 Regression] ICE in
                    gfc_enforce_clean_symbol_state, at
                    fortran/symbol.c:4278
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Changed between 20210822 and 20210905 :
(gcc configured with --enable-checking=yes)


$ cat z1.f90
module m
contains
   function f()
      character(:), allocatable :: f
      character(1) :: g
   entry g()
   end
end


$ cat z2.f90
module m
contains
   function f()
      character(:), allocatable :: f
      character(1) :: g
      f = 'f'
   entry g()
      g = 'g'
   end
end


$ gfortran-12-20210822 -c z1.f90
z1.f90:8:3:

    8 | end
      |   1
Error: Entity 'master.0.f' at (1) has a deferred type parameter and requires
either the POINTER or ALLOCATABLE attribute


$ gfortran-12-20210905 -c z1.f90
z1.f90:3:3:

    3 |    function f()
      |   1
Error: Function f at (1) has entry g with mismatched characteristics
z1.f90:3:3:

    3 |    function f()
      |   1
Error: Function f at (1) has entry g with mismatched characteristics
f951: internal compiler error: in gfc_enforce_clean_symbol_state, at
fortran/symbol.c:4278
0x8422f0 gfc_enforce_clean_symbol_state()
        ../../gcc/fortran/symbol.c:4278
0x7fd9bc next_statement
        ../../gcc/fortran/parse.c:1589
0x8034e4 gfc_parse_file()
        ../../gcc/fortran/parse.c:6638
0x8510ff gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:216

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

end of thread, other threads:[~2021-09-19 19:28 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-13 17:26 [Bug fortran/102311] New: [11/12 Regression] ICE in gfc_enforce_clean_symbol_state, at fortran/symbol.c:4278 gscfq@t-online.de
2021-09-13 18:54 ` [Bug fortran/102311] " anlauf at gcc dot gnu.org
2021-09-13 19:13 ` anlauf at gcc dot gnu.org
2021-09-14  6:55 ` rguenth at gcc dot gnu.org
2021-09-14  7:21 ` marxin at gcc dot gnu.org
2021-09-14  7:40 ` anlauf at gcc dot gnu.org
2021-09-14 18:23 ` cvs-commit at gcc dot gnu.org
2021-09-14 18:55 ` anlauf at gcc dot gnu.org
2021-09-19 19:19 ` cvs-commit at gcc dot gnu.org
2021-09-19 19:28 ` 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).