public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/97975] New: ICE unexpected expression '(int)A< <template-parameter-1-1> >::b' of kind implicit_conv_expr
@ 2020-11-24 18:34 gscfq@t-online.de
  2020-11-25  8:12 ` [Bug c++/97975] " marxin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: gscfq@t-online.de @ 2020-11-24 18:34 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97975
           Summary: ICE unexpected expression '(int)A<
                    <template-parameter-1-1> >::b' of kind
                    implicit_conv_expr
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Seems to be an old issue :


$ cat z1.cc
template <class> class A
{
  static const float b;
  static inline const int c = b;
};


$ g++-11-20201122 -c z1.cc
z1.cc:4:31: internal compiler error: unexpected expression '(int)A<
<template-parameter-1-1> >::b' of kind implicit_conv_expr
    4 |   static inline const int c = b;
      |                               ^
0x6f5185 cxx_eval_constant_expression
        ../../gcc/cp/constexpr.c:6647
0x6f6b37 cxx_eval_outermost_constant_expr
        ../../gcc/cp/constexpr.c:6856
0x6fbf8f maybe_constant_init_1
        ../../gcc/cp/constexpr.c:7307
0x96811c store_init_value(tree_node*, tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
        ../../gcc/cp/typeck2.c:760
0x74fc6e check_initializer
        ../../gcc/cp/decl.c:6923
0x77f0ab cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        ../../gcc/cp/decl.c:7713
0x793bd3 finish_static_data_member_decl(tree_node*, tree_node*, bool,
tree_node*, int)
        ../../gcc/cp/decl2.c:814
0x79477e grokfield(cp_declarator const*, cp_decl_specifier_seq*, tree_node*,
bool, tree_node*, tree_node*)
        ../../gcc/cp/decl2.c:1000
0x85f9f4 cp_parser_member_declaration
        ../../gcc/cp/parser.c:25861
0x82f722 cp_parser_member_specification_opt
        ../../gcc/cp/parser.c:25306
0x82f722 cp_parser_class_specifier_1
        ../../gcc/cp/parser.c:24395
0x832159 cp_parser_class_specifier
        ../../gcc/cp/parser.c:24706
0x832159 cp_parser_type_specifier
        ../../gcc/cp/parser.c:17962
0x832d86 cp_parser_decl_specifier_seq
        ../../gcc/cp/parser.c:14584
0x85e0f5 cp_parser_single_declaration
        ../../gcc/cp/parser.c:29906
0x85e4b5 cp_parser_template_declaration_after_parameters
        ../../gcc/cp/parser.c:29570
0x85f07f cp_parser_explicit_template_declaration
        ../../gcc/cp/parser.c:29835
0x85f07f cp_parser_template_declaration_after_export
        ../../gcc/cp/parser.c:29854
0x8613a9 cp_parser_declaration
        ../../gcc/cp/parser.c:13608
0x861cf8 cp_parser_translation_unit
        ../../gcc/cp/parser.c:4806

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

end of thread, other threads:[~2024-03-26 17:19 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-24 18:34 [Bug c++/97975] New: ICE unexpected expression '(int)A< <template-parameter-1-1> >::b' of kind implicit_conv_expr gscfq@t-online.de
2020-11-25  8:12 ` [Bug c++/97975] " marxin at gcc dot gnu.org
2020-12-01  2:58 ` [Bug c++/97975] [8/9/10/11 Regression] " mpolacek at gcc dot gnu.org
2020-12-01  2:58 ` mpolacek at gcc dot gnu.org
2020-12-02 19:39 ` cvs-commit at gcc dot gnu.org
2020-12-02 19:40 ` [Bug c++/97975] [8/9/10 " mpolacek at gcc dot gnu.org
2021-01-05 21:31 ` cvs-commit at gcc dot gnu.org
2021-01-05 21:36 ` [Bug c++/97975] [8/9 " mpolacek at gcc dot gnu.org
2024-03-26 17:19 ` pinskia 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).