Commit 6ff9491a by Marek Polacek

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
parent 0e038601
2018-01-02 Richard Biener <rguenther@suse.de>
* ipa-inline.c (big_speedup_p): Fix expression.
2018-01-02 Jan Hubicka <hubicka@ucw.cz> 2018-01-02 Jan Hubicka <hubicka@ucw.cz>
PR target/81616 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> 2018-01-01 Paul Thomas <pault@gcc.gnu.org>
......
// 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);
}
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