public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103703] New: ICE with -Wmismatched-tags
@ 2021-12-14  5:43 f.heckenbach@fh-soft.de
  2021-12-14  6:56 ` [Bug c++/103703] ICE with -Wmismatched-tags with friends and templates pinskia at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: f.heckenbach@fh-soft.de @ 2021-12-14  5:43 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 103703
           Summary: ICE with -Wmismatched-tags
           Product: gcc
           Version: 11.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: f.heckenbach@fh-soft.de
  Target Milestone: ---

% cat test.cpp
template <typename T> struct A { struct B { }; };
template <typename T> struct C { friend struct A <C>::B; };
% g++ -Wmismatched-tags test.cpp
test.cpp:2:59: internal compiler error: Segmentation fault
    2 | template <typename T> struct C { friend struct A <C>::B; };
      |                                                           ^
0x1786229 internal_error(char const*, ...)
        ???:0
0x78c6ed class_decl_loc_t::diag_mismatched_tags(tree_node*)
        ???:0
0x790955 class_decl_loc_t::diag_mismatched_tags()
        ???:0
0x7c482e c_parse_file()
        ???:0
0x896762 c_common_parse_file()
        ???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1

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

end of thread, other threads:[~2021-12-16 22:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-14  5:43 [Bug c++/103703] New: ICE with -Wmismatched-tags f.heckenbach@fh-soft.de
2021-12-14  6:56 ` [Bug c++/103703] ICE with -Wmismatched-tags with friends and templates pinskia at gcc dot gnu.org
2021-12-14 10:15 ` marxin at gcc dot gnu.org
2021-12-14 22:40 ` msebor at gcc dot gnu.org
2021-12-16 22:13 ` cvs-commit at gcc dot gnu.org
2021-12-16 22:37 ` cvs-commit at gcc dot gnu.org
2021-12-16 22:38 ` msebor at gcc dot gnu.org
2021-12-16 22:38 ` msebor 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).