https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65291

--- Comment #1 from webmatematika at hotmail dot com ---
Here is compile error output:  

(I added in c.cpp line 4 "public:" in class C)





voja@vojaws:~/coding$ gcc c.cpp -std=c++11
c.cpp: In constructor ‘C::C()’:
c.cpp:5:11: error: no matching function for call to ‘B::B()’
   C() : B() {}
           ^
c.cpp:5:11: note: candidates are:
In file included from c.cpp:1:0:
b.h:7:12: note: B::B(int)
   using A::A;
            ^
b.h:7:12: note:   candidate expects 1 argument, 0 provided
b.h:5:3: note: B::B(int, int)
   B(int b1, int b2) : A(b1) {}
   ^
b.h:5:3: note:   candidate expects 2 arguments, 0 provided
b.h:3:7: note: constexpr B::B(const B&)
 class B : public A {
       ^
b.h:3:7: note:   candidate expects 1 argument, 0 provided
b.h:3:7: note: constexpr B::B(B&&)
b.h:3:7: note:   candidate expects 1 argument, 0 provided

Reply via email to