]> 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>
Thu, 22 Apr 2021 14:51:58 +0000 (16:51 +0200)
commit45f0ddc530eed61c45f1873a9cf7c85eb4f5da10
treeb78a584d446918001b3906df60b7b289bb517700
parent6132dc70413163b96955a3ebca33c849eb2eb88e
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)
gcc/cp/decl2.c
gcc/testsuite/g++.dg/cpp0x/variadic181.C [new file with mode: 0644]