PR c++/81860
* g++.dg/cpp0x/inh-ctor30.C: New test.
From-SVN: r256076
+2018-01-02 Richard Biener <rguenther@suse.de>
+
+ * ipa-inline.c (big_speedup_p): Fix expression.
+
2018-01-02 Jan Hubicka <hubicka@ucw.cz>
PR target/81616
-2018-01-02 Richard Biener <rguenther@suse.de>
+2018-01-02 Marek Polacek <polacek@redhat.com>
- * ipa-inline.c (big_speedup_p): Fix expression.
+ PR c++/81860
+ * g++.dg/cpp0x/inh-ctor30.C: New test.
2018-01-01 Paul Thomas <pault@gcc.gnu.org>
--- /dev/null
+// PR c++/81860
+// { dg-do compile { target c++11 } }
+// { dg-final { scan-assembler "_ZN1AIjEC2Ev" } }
+
+template <typename T>
+struct A
+{
+ A() {}
+};
+
+struct B
+{
+ template <typename D>
+ B(D, const A<unsigned>& a = A<unsigned>()) : a(a) {}
+
+ A<unsigned> a;
+};
+
+struct C : B
+{
+ using B::B;
+};
+
+int main()
+{
+ C c(0);
+}