public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "f.heckenbach@fh-soft.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/103703] New: ICE with -Wmismatched-tags
Date: Tue, 14 Dec 2021 05:43:11 +0000	[thread overview]
Message-ID: <bug-103703-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             reply	other threads:[~2021-12-14  5:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-14  5:43 f.heckenbach@fh-soft.de [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-103703-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).