From: Marek Polacek Date: Tue, 2 Jan 2018 15:05:09 +0000 (+0000) Subject: re PR c++/81860 (Call to undefined inline function involving inheriting constructors) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ff9491ae9a51c6adada2a667a869861edefcb2b;p=gcc.git re PR c++/81860 (Call to undefined inline function involving inheriting constructors) PR c++/81860 * g++.dg/cpp0x/inh-ctor30.C: New test. From-SVN: r256076 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 522573ffb90..6cc4c4db829 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-01-02 Richard Biener + + * ipa-inline.c (big_speedup_p): Fix expression. + 2018-01-02 Jan Hubicka PR target/81616 diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 223877e2b44..9b88e6c05e3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,6 +1,7 @@ -2018-01-02 Richard Biener +2018-01-02 Marek Polacek - * ipa-inline.c (big_speedup_p): Fix expression. + PR c++/81860 + * g++.dg/cpp0x/inh-ctor30.C: New test. 2018-01-01 Paul Thomas diff --git a/gcc/testsuite/g++.dg/cpp0x/inh-ctor30.C b/gcc/testsuite/g++.dg/cpp0x/inh-ctor30.C new file mode 100644 index 00000000000..f40b052eac0 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/inh-ctor30.C @@ -0,0 +1,27 @@ +// PR c++/81860 +// { dg-do compile { target c++11 } } +// { dg-final { scan-assembler "_ZN1AIjEC2Ev" } } + +template +struct A +{ + A() {} +}; + +struct B +{ + template + B(D, const A& a = A()) : a(a) {} + + A a; +}; + +struct C : B +{ + using B::B; +}; + +int main() +{ + C c(0); +}