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

            Bug ID: 99745
           Summary: ICE when parameter pack not expanded in bit field
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hewillk at gmail dot com
  Target Milestone: ---

https://godbolt.org/z/dz1bcxhYf

template <typename... Ts>
struct S { 
  int a : sizeof(Ts); 
};

S s;


<source>:3:11: internal compiler error: in dependent_type_p, at cp/pt.c:26775
    3 |   int a : sizeof(Ts);
      |           ^~~~~~~~~~
0x1cfa409 internal_error(char const*, ...)
        ???:0
0x6ba5f7 fancy_abort(char const*, int, char const*)
        ???:0
0x8f91c8 dependent_type_p(tree_node*)
        ???:0
0x9c3a1f cxx_sizeof_or_alignof_type(unsigned int, tree_node*, tree_code, bool,
bool)
        ???:0
0x9164a7 tsubst(tree_node*, tree_node*, int, tree_node*)
        ???:0
0x95a1a6 instantiate_class_template(tree_node*)
        ???:0
0x7b2bd0 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
        ???:0
0x8e111d c_parse_file()
        ???:0
0xa5f9c2 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.

Reply via email to