public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/96025] New: [9/10/11 Regression] ICE in expr_check_typed_help, at fortran/expr.c:5437
@ 2020-07-01 19:31 gscfq@t-online.de
  2020-07-01 19:32 ` [Bug fortran/96025] " gscfq@t-online.de
                   ` (15 more replies)
  0 siblings, 16 replies; 17+ messages in thread
From: gscfq@t-online.de @ 2020-07-01 19:31 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96025
           Summary: [9/10/11 Regression] ICE in expr_check_typed_help, at
                    fortran/expr.c:5437
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Affects versions down to r6, similar to pr96024 :


$ cat z1.f90
program p
   print *, f()
contains
   character(char(1)) function f()
      f = 'f'
   end
end


$ gfortran-5 -c z1.f90
z1.f90:4:13:

    character(char(1)) function f()
             1
Error: Expression at (1) must be of INTEGER type, found CHARACTER


$ gfortran-11-20200628 -c z1.f90
f951: internal compiler error: Segmentation fault
0xbd215f crash_signal
        ../../gcc/toplev.c:328
0x6592b0 expr_check_typed_help
        ../../gcc/fortran/expr.c:5437
0x65f90d gfc_traverse_expr(gfc_expr*, gfc_symbol*, bool (*)(gfc_expr*,
gfc_symbol*, int*), int)
        ../../gcc/fortran/expr.c:5212
0x65f956 gfc_traverse_expr(gfc_expr*, gfc_symbol*, bool (*)(gfc_expr*,
gfc_symbol*, int*), int)
        ../../gcc/fortran/expr.c:5262
0x65fa01 gfc_traverse_expr(gfc_expr*, gfc_symbol*, bool (*)(gfc_expr*,
gfc_symbol*, int*), int)
        ../../gcc/fortran/expr.c:5219
0x65ff5e gfc_expr_check_typed(gfc_expr*, gfc_namespace*, bool)
        ../../gcc/fortran/expr.c:5475
0x6b13af parse_spec
        ../../gcc/fortran/parse.c:3829
0x6b3f0c parse_progunit
        ../../gcc/fortran/parse.c:5852
0x6b42f1 parse_contained
        ../../gcc/fortran/parse.c:5753
0x6b4196 parse_progunit
        ../../gcc/fortran/parse.c:5924
0x6b55e9 gfc_parse_file()
        ../../gcc/fortran/parse.c:6393
0x7016ff gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:212

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

end of thread, other threads:[~2023-03-05 19:38 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-01 19:31 [Bug fortran/96025] New: [9/10/11 Regression] ICE in expr_check_typed_help, at fortran/expr.c:5437 gscfq@t-online.de
2020-07-01 19:32 ` [Bug fortran/96025] " gscfq@t-online.de
2020-07-01 20:19 ` dominiq at lps dot ens.fr
2020-07-01 21:21 ` kargl at gcc dot gnu.org
2020-07-01 21:21 ` kargl at gcc dot gnu.org
2020-07-02  6:43 ` rguenth at gcc dot gnu.org
2020-07-04  9:28 ` dominiq at lps dot ens.fr
2021-06-01  8:17 ` [Bug fortran/96025] [9/10/11/12 " rguenth at gcc dot gnu.org
2022-05-27  9:43 ` [Bug fortran/96025] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:41 ` jakub at gcc dot gnu.org
2023-02-19 21:02 ` anlauf at gcc dot gnu.org
2023-02-20 20:43 ` anlauf at gcc dot gnu.org
2023-02-21 18:04 ` cvs-commit at gcc dot gnu.org
2023-03-04 19:51 ` cvs-commit at gcc dot gnu.org
2023-03-05 19:35 ` cvs-commit at gcc dot gnu.org
2023-03-05 19:36 ` cvs-commit at gcc dot gnu.org
2023-03-05 19:38 ` 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).