* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / inh-ctor26.C
blobe1e6b9e0418f54667ca07680f5d6e83c2df024d7
1 // PR c++/79503
2 // { dg-do compile { target c++11 } }
4 struct payload {};
6 struct base: private payload {
7     base(payload) {}
8 };
10 struct derived: base {
11     using base::base;
14 int main()
16     payload data;
17     // error: no matching function for call to 'derived::derived(payload&)'
18     // note: candidate: base::base(payload)
19     // note:   an inherited constructor is not a candidate for initialization from an expression of the same or derived type
20     derived demo(data);