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
* [Bug c++/99745] ICE when parameter pack not expanded in bit field 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 ` hewillk at gmail dot com 2021-03-24 15:48 ` jakub at gcc dot gnu.org ` (6 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: hewillk at gmail dot com @ 2021-03-24 6:25 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99745 --- Comment #1 from 康桓瑋 <hewillk at gmail dot com> --- Reduce a little: template <int... Xs> struct S { int x : Xs; }; S s; <source>:3:7: internal compiler error: unexpected expression 'Xs' of kind template_parm_index 3 | int x : Xs; | ^ ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/99745] ICE when parameter pack not expanded in bit field 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 ` (5 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: jakub at gcc dot gnu.org @ 2021-03-24 15:48 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99745 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2021-03-24 Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 50469 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50469&action=edit gcc11-pr99745.patch Untested fix. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/99745] ICE when parameter pack not expanded in bit field 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 ` (4 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2021-03-25 20:06 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99745 --- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>: https://gcc.gnu.org/g:0b86a6438191f720bebf880a2b932cd97d10229a commit r11-7834-g0b86a6438191f720bebf880a2b932cd97d10229a Author: Jakub Jelinek <jakub@redhat.com> Date: Thu Mar 25 21:06:09 2021 +0100 c++: Diagnose bare parameter packs in bitfield widths [PR99745] The following invalid tests ICE because we don't diagnose (and drop) bare parameter packs in bitfield widths. 2021-03-25 Jakub Jelinek <jakub@redhat.com> PR c++/99745 * decl2.c (grokbitfield): Diagnose bitfields containing bare parameter packs and don't set DECL_BIT_FIELD_REPRESENTATIVE in that case. * g++.dg/cpp0x/variadic181.C: New test. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/99745] ICE when parameter pack not expanded in bit field 2021-03-24 5:18 [Bug c++/99745] New: ICE when parameter pack not expanded in bit field hewillk at gmail dot com ` (2 preceding siblings ...) 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 ` (3 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: jakub at gcc dot gnu.org @ 2021-03-25 20:07 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99745 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/99745] ICE when parameter pack not expanded in bit field 2021-03-24 5:18 [Bug c++/99745] New: ICE when parameter pack not expanded in bit field hewillk at gmail dot com ` (3 preceding siblings ...) 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 ` (2 subsequent siblings) 7 siblings, 0 replies; 9+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2021-03-30 22:41 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99745 --- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>: https://gcc.gnu.org/g:f8780caf07340f5d5e55cf5fb1b2be07cabab1ea commit r10-9622-gf8780caf07340f5d5e55cf5fb1b2be07cabab1ea Author: Jakub Jelinek <jakub@redhat.com> Date: Thu Mar 25 21:06:09 2021 +0100 c++: Diagnose bare parameter packs in bitfield widths [PR99745] The following invalid tests ICE because we don't diagnose (and drop) bare parameter packs in bitfield widths. 2021-03-25 Jakub Jelinek <jakub@redhat.com> PR c++/99745 * decl2.c (grokbitfield): Diagnose bitfields containing bare parameter packs and don't set DECL_BIT_FIELD_REPRESENTATIVE in that case. * g++.dg/cpp0x/variadic181.C: New test. ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/99745] ICE when parameter pack not expanded in bit field 2021-03-24 5:18 [Bug c++/99745] New: ICE when parameter pack not expanded in bit field hewillk at gmail dot com ` (4 preceding siblings ...) 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 7 siblings, 0 replies; 9+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2021-04-20 23:33 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99745 --- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>: https://gcc.gnu.org/g:4b30a6d214ad94dfdffa93843d628484d2555b51 commit r9-9437-g4b30a6d214ad94dfdffa93843d628484d2555b51 Author: Jakub Jelinek <jakub@redhat.com> Date: Thu Mar 25 21:06:09 2021 +0100 c++: Diagnose bare parameter packs in bitfield widths [PR99745] The following invalid tests ICE because we don't diagnose (and drop) bare parameter packs in bitfield widths. 2021-03-25 Jakub Jelinek <jakub@redhat.com> PR c++/99745 * decl2.c (grokbitfield): Diagnose bitfields containing bare parameter packs and don't set DECL_BIT_FIELD_REPRESENTATIVE in that case. * g++.dg/cpp0x/variadic181.C: New test. (cherry picked from commit f8780caf07340f5d5e55cf5fb1b2be07cabab1ea) ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/99745] ICE when parameter pack not expanded in bit field 2021-03-24 5:18 [Bug c++/99745] New: ICE when parameter pack not expanded in bit field hewillk at gmail dot com ` (5 preceding siblings ...) 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 7 siblings, 0 replies; 9+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2021-04-22 16:52 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99745 --- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-8 branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>: https://gcc.gnu.org/g:45f0ddc530eed61c45f1873a9cf7c85eb4f5da10 commit r8-10900-g45f0ddc530eed61c45f1873a9cf7c85eb4f5da10 Author: Jakub Jelinek <jakub@redhat.com> Date: Thu Mar 25 21:06:09 2021 +0100 c++: Diagnose bare parameter packs in bitfield widths [PR99745] The following invalid tests ICE because we don't diagnose (and drop) bare parameter packs in bitfield widths. 2021-03-25 Jakub Jelinek <jakub@redhat.com> PR c++/99745 * decl2.c (grokbitfield): Diagnose bitfields containing bare parameter packs and don't set DECL_BIT_FIELD_REPRESENTATIVE in that case. * g++.dg/cpp0x/variadic181.C: New test. (cherry picked from commit f8780caf07340f5d5e55cf5fb1b2be07cabab1ea) ^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c++/99745] ICE when parameter pack not expanded in bit field 2021-03-24 5:18 [Bug c++/99745] New: ICE when parameter pack not expanded in bit field hewillk at gmail dot com ` (6 preceding siblings ...) 2021-04-22 16:52 ` cvs-commit at gcc dot gnu.org @ 2021-09-11 14:29 ` pinskia at gcc dot gnu.org 7 siblings, 0 replies; 9+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-09-11 14:29 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99745 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |8.5 ^ 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).