Backported from mainline
2019-03-08 Jakub Jelinek <jakub@redhat.com>
PR c++/82075
* g++.dg/cpp1z/decomp49.C: New test.
From-SVN: r275125
2019-08-30 Jakub Jelinek <jakub@redhat.com>
Backported from mainline
+ 2019-03-08 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/82075
+ * g++.dg/cpp1z/decomp49.C: New test.
+
2019-03-06 Jakub Jelinek <jakub@redhat.com>
PR c++/87148
--- /dev/null
+// 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 ();
+}