]> git.ipfire.org Git - thirdparty/gcc.git/commit
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>
Tue, 30 Mar 2021 19:15:50 +0000 (21:15 +0200)
commitf8780caf07340f5d5e55cf5fb1b2be07cabab1ea
treecf254be4bd4c4f85bc9afa9196f93d5571d0ff9d
parentd5e379e3fe19362442b5d0ac608fb8ddf67fecd3
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]