public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/107400] New: ICE tree check: expected class 'type', have 'declaration' (template_decl) in get_originating_module_decl, at cp/module.cc:18587
Date: Tue, 25 Oct 2022 17:33:07 +0000	[thread overview]
Message-ID: <bug-107400-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 107400
           Summary: ICE tree check: expected class 'type', have
                    'declaration' (template_decl) in
                    get_originating_module_decl, at cp/module.cc:18587
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

With file g++.dg/template/pr59930-3.C :
(gcc configured with --enable-checking=yes)


$ g++-13-20221023 -c pr59930-3.C
$
$ g++-13-20221023 -c pr59930-3.C -fmodules-ts
'
tree check: expected class 'type', have 'declaration' (template_decl) in
get_originating_module_decl, at cp/module.cc:18587
   17 |     void method() const
      |          ^~~~~~
0x7019d3 tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
        ../../gcc/tree.cc:8886
0x98b558 tree_class_check(tree_node*, tree_code_class, char const*, int, char
const*)
        ../../gcc/tree.h:3649
0x98b558 get_originating_module_decl(tree_node*)
        ../../gcc/cp/module.cc:18587
0x98b687 get_originating_module(tree_node*, bool)
        ../../gcc/cp/module.cc:18626
0x919fa6 dump_module_suffix
        ../../gcc/cp/error.cc:207
0x91acba dump_module_suffix
        ../../gcc/cp/error.cc:189
0x91acba dump_aggr_type
        ../../gcc/cp/error.cc:856
0x9262da dump_function_decl
        ../../gcc/cp/error.cc:1812
0x9294f6 decl_to_string
        ../../gcc/cp/error.cc:3297
0x9294f6 cp_printer
        ../../gcc/cp/error.cc:4471
0x22113c0 pp_format(pretty_printer*, text_info*)
        ../../gcc/pretty-print.cc:1475
0x2211a20 pp_format_verbatim(pretty_printer*, text_info*)
        ../../gcc/pretty-print.cc:1536
0x2211af4 pp_verbatim(pretty_printer*, char const*, ...)
        ../../gcc/pretty-print.cc:1790
0x919caf print_instantiation_full_context
        ../../gcc/cp/error.cc:3710
0x92a3fa maybe_print_instantiation_context
        ../../gcc/cp/error.cc:3858
0x92a3fa cp_diagnostic_starter
        ../../gcc/cp/error.cc:3548
0x21f02fc diagnostic_report_diagnostic(diagnostic_context*, diagnostic_info*)
        ../../gcc/diagnostic.cc:1549
0x21f0a3a diagnostic_impl
        ../../gcc/diagnostic.cc:1712
0x21f1686 internal_error(char const*, ...)
        ../../gcc/diagnostic.cc:2112
0x7019d3 tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
        ../../gcc/tree.cc:8886

             reply	other threads:[~2022-10-25 17:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-25 17:33 gscfq@t-online.de [this message]
2024-03-03  2:23 ` [Bug c++/107400] [c++ modules] " nshead 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-107400-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).