public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105006] New: ice: tree check: expected function_decl, have using_decl in maybe_push_used_methods, at cp/class.cc:1325
@ 2022-03-21 18:39 dcb314 at hotmail dot com
  2022-03-21 18:41 ` [Bug c++/105006] " dcb314 at hotmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: dcb314 at hotmail dot com @ 2022-03-21 18:39 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105006
           Summary: ice: tree check: expected function_decl, have
                    using_decl in maybe_push_used_methods, at
                    cp/class.cc:1325
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

For this C++ code:

emplate <typename eT> class Row {
  eT ::operator();
  void operator()();
  template <long> class fixed;
};
template <typename eT> template <int> class Row<eT>::fixed : Row {
  Row::operator();
};

compiled by recent gcc trunk does this:

bug799.cc:2:3: warning: access declarations are deprecated in favour of
using-declarations; suggestion: add the ‘using’ keyword [-Wdeprecated]
    2 |   eT ::operator();
      |   ^~
bug799.cc:7:17: internal compiler error: tree check: expected function_decl,
have using_decl in maybe_push_used_met
hods, at cp/class.cc:1325
    7 |   Row::operator();
      |                 ^
0x13a8ce6 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ../../trunk.git/gcc/tree.cc:8724
0x6cdcc5 maybe_push_used_methods(tree_node*)
        ../../trunk.git/gcc/cp/class.cc:0

The bug first seems to occur sometime between git hash 3a7ba8fd0cda3878
and 2663d18356b0a62f, a distance of 33 commits.

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

end of thread, other threads:[~2022-03-24 16:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-21 18:39 [Bug c++/105006] New: ice: tree check: expected function_decl, have using_decl in maybe_push_used_methods, at cp/class.cc:1325 dcb314 at hotmail dot com
2022-03-21 18:41 ` [Bug c++/105006] " dcb314 at hotmail dot com
2022-03-21 18:48 ` [Bug c++/105006] [12 Regression] " ppalka at gcc dot gnu.org
2022-03-22  8:25 ` rguenth at gcc dot gnu.org
2022-03-22 15:09 ` jason at gcc dot gnu.org
2022-03-23 12:56 ` cvs-commit at gcc dot gnu.org
2022-03-23 17:17 ` cvs-commit at gcc dot gnu.org
2022-03-24 16:39 ` jason 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).