c++: Diagnose bare parameter packs in bitfield widths [PR99745]
authorJakub Jelinek <jakub@redhat.com>
Thu, 25 Mar 2021 20:06:09 +0000 (21:06 +0100)
committerJakub Jelinek <jakub@redhat.com>
Thu, 25 Mar 2021 20:06:09 +0000 (21:06 +0100)
commit0b86a6438191f720bebf880a2b932cd97d10229a
treefe2f1d624a8ddf0a5f1da8b784038ece1257a74e
parent9efd72d28956eb79c7fca38e3c959733a3bb25bb
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.
gcc/cp/decl2.c
gcc/testsuite/g++.dg/cpp0x/variadic181.C [new file with mode: 0644]