public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99745] New: ICE when parameter pack not expanded in bit field
@ 2021-03-24  5:18 hewillk at gmail dot com
  2021-03-24  6:25 ` [Bug c++/99745] " hewillk at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: hewillk at gmail dot com @ 2021-03-24  5:18 UTC (permalink / raw)
  To: gcc-bugs

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.

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

end of thread, other threads:[~2021-09-11 14:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24  5:18 [Bug c++/99745] New: ICE when parameter pack not expanded in bit field hewillk at gmail dot com
2021-03-24  6:25 ` [Bug c++/99745] " hewillk at gmail dot com
2021-03-24 15:48 ` jakub at gcc dot gnu.org
2021-03-25 20:06 ` cvs-commit at gcc dot gnu.org
2021-03-25 20:07 ` jakub at gcc dot gnu.org
2021-03-30 22:41 ` cvs-commit at gcc dot gnu.org
2021-04-20 23:33 ` cvs-commit at gcc dot gnu.org
2021-04-22 16:52 ` cvs-commit at gcc dot gnu.org
2021-09-11 14:29 ` 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).