public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100198] New: ICE: unexpected expression 'E' of kind template_parm_index
@ 2021-04-22  8:07 hewillk at gmail dot com
  2021-04-22 10:35 ` [Bug c++/100198] " rguenth at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: hewillk at gmail dot com @ 2021-04-22  8:07 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100198
           Summary: ICE: unexpected expression 'E' of kind
                    template_parm_index
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

12 Regression extremely related to fixed PR 100109.

template <int... E>
void f() {
  ([] { enum e { e = E }; }(), ...);
}

template void f<0>();

<source>:3:14: internal compiler error: unexpected expression 'E' of kind
template_parm_index
    3 |   ([] { enum e { e = E }; }(), ...);
      |              ^
0x1d02fc9 internal_error(char const*, ...)
        ???:0
0x7a6f3d build_enumerator(tree_node*, tree_node*, tree_node*, tree_node*,
unsigned int)
        ???:0
0x92c558 lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*,
int, int)
        ???:0
0x91843d tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x9184e7 tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x94ba12 tsubst_lambda_expr(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x932f5f tsubst_pack_expansion(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x91e31f instantiate_decl(tree_node*, bool, bool)
        ???:0
0x96024b instantiate_pending_templates(int)
        ???:0
0x7cd029 c_parse_final_cleanups()
        ???:0
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.

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

end of thread, other threads:[~2022-01-28  5:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22  8:07 [Bug c++/100198] New: ICE: unexpected expression 'E' of kind template_parm_index hewillk at gmail dot com
2021-04-22 10:35 ` [Bug c++/100198] " rguenth at gcc dot gnu.org
2021-04-22 12:45 ` hewillk at gmail dot com
2021-04-22 15:33 ` [Bug c++/100198] [12 Regression] " mpolacek at gcc dot gnu.org
2022-01-17 14:59 ` [Bug c++/100198] [12 Regression] ICE with enum in lambda in pack expansion rguenth at gcc dot gnu.org
2022-01-18 23:23 ` jason at gcc dot gnu.org
2022-01-28  3:21 ` cvs-commit at gcc dot gnu.org
2022-01-28  5:09 ` [Bug c++/100198] " jason at gcc dot gnu.org
2022-01-28  5:09 ` 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).