Commit 6fbaad21 by Jakub Jelinek Committed by Jakub Jelinek

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

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

From-SVN: r269504
parent 3a3998f3
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> 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
* gcc.target/arm/f16_f64_conv_no_dp.c: New test. * gcc.target/arm/f16_f64_conv_no_dp.c: New test.
......
// 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 ();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment