public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/111218] New: Conflict in BIND(C) INTERFACEs in two Modules leads to ICE.
@ 2023-08-28 19:28 toon at moene dot org
  2023-08-28 23:14 ` [Bug fortran/111218] " kargl at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: toon at moene dot org @ 2023-08-28 19:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111218
           Summary: Conflict in BIND(C) INTERFACEs in two Modules leads to
                    ICE.
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: toon at moene dot org
  Target Milestone: ---

The following program:

MODULE FIELD_2RM_UTIL_MODULE

INTERFACE

SUBROUTINE SET_ABOR1_EXCEPTION_HANDLER()
BIND(C,name="set_abor1_exception_handler")
END SUBROUTINE SET_ABOR1_EXCEPTION_HANDLER

END INTERFACE

END MODULE
MODULE FIELD_3RM_UTIL_MODULE

INTERFACE

SUBROUTINE SET_ABOR1_EXCEPTION_HANDLER()
BIND(C,name="set_abor1_exception_handler")
END SUBROUTINE SET_ABOR1_EXCEPTION_HANDLER

END INTERFACE

END MODULE
MODULE FIELD_UTIL_MODULE


USE FIELD_2RM_UTIL_MODULE
USE FIELD_3RM_UTIL_MODULE

IMPLICIT NONE

END MODULE

leads to the following internal compiler error:

/home/toon/compilers/install/gcc/bin/gfortran -c -g a.f90

in gfc_format_decoder, at fortran/error.cc:1078
0x75917d gfc_format_decoder
        /home/toon/compilers/gcc/gcc/fortran/error.cc:1078
0x2153e1f pp_format(pretty_printer*, text_info*)
        /home/toon/compilers/gcc/gcc/pretty-print.cc:1475
0x21315be diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        /home/toon/compilers/gcc/gcc/diagnostic.cc:1606
0x9b628e gfc_report_diagnostic
        /home/toon/compilers/gcc/gcc/fortran/error.cc:890
0x9b628e gfc_error_opt
        /home/toon/compilers/gcc/gcc/fortran/error.cc:1460
0x9b7470 gfc_error(char const*, ...)
        /home/toon/compilers/gcc/gcc/fortran/error.cc:1489
0xa6205b ambiguous_symbol
        /home/toon/compilers/gcc/gcc/fortran/symbol.cc:3167
0xa6ce9e gfc_find_sym_tree(char const*, gfc_namespace*, int, gfc_symtree**)
        /home/toon/compilers/gcc/gcc/fortran/symbol.cc:3240
0xa6cec1 gfc_find_symbol(char const*, gfc_namespace*, int, gfc_symbol**)
        /home/toon/compilers/gcc/gcc/fortran/symbol.cc:3291
0xb27a05 check_against_globals
        /home/toon/compilers/gcc/gcc/fortran/frontend-passes.cc:5842
0xa630e2 do_traverse_symtree
        /home/toon/compilers/gcc/gcc/fortran/symbol.cc:4190
0xb30231 gfc_check_externals(gfc_namespace*)
        /home/toon/compilers/gcc/gcc/fortran/frontend-passes.cc:5888
0xa293d8 gfc_parse_file()
        /home/toon/compilers/gcc/gcc/fortran/parse.cc:7195
0xa7aecf gfc_be_parse_file
        /home/toon/compilers/gcc/gcc/fortran/f95-lang.cc:229
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

(tested with gcc version 14.0.0 20230828 (experimental) [master
r14-3528-gc3669bb677b] (GCC)

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

end of thread, other threads:[~2023-10-14  2:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-28 19:28 [Bug fortran/111218] New: Conflict in BIND(C) INTERFACEs in two Modules leads to ICE toon at moene dot org
2023-08-28 23:14 ` [Bug fortran/111218] " kargl at gcc dot gnu.org
2023-08-29 16:47 ` anlauf at gcc dot gnu.org
2023-08-29 16:51 ` anlauf at gcc dot gnu.org
2023-08-31 10:41 ` rimvydas.jas at gmail dot com
2023-10-14  2:00 ` kargl at gcc dot gnu.org
2023-10-14  2:08 ` kargl at gcc dot gnu.org
2023-10-14  2:30 ` kargl 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).