re PR c++/82075 (structured binding fails with empty base class)

PR c++/82075
	* g++.dg/cpp1z/decomp49.C: New test.

From-SVN: r269504
This commit is contained in:
Jakub Jelinek 2019-03-08 19:31:27 +01:00 committed by Jakub Jelinek
parent 3a3998f36a
commit 6fbaad2154
2 changed files with 19 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2019-03-08 Jakub Jelinek <jakub@redhat.com>
PR c++/82075
* g++.dg/cpp1z/decomp49.C: New test.
2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
* gcc.target/arm/f16_f64_conv_no_dp.c: New test.

View file

@ -0,0 +1,14 @@
// PR c++/82075
// { dg-do run { target c++11 } }
// { dg-options "" }
struct B { };
struct D : B { int i; };
int
main ()
{
auto [i] = D{}; // { dg-warning "only available with" "" { target c++14_down } }
if (i != 0)
__builtin_abort ();
}