// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s
// Tests related to constructor inheriting, but not specified in [class.inhctor]
// [namespace.udecl]p8:
// A using-declaration for a class member shall be a member-declaration.
;
using B1::B1; // expected-error {{using declaration cannot refer to class member}}
// C++11 [namespace.udecl]p10:
// A using-declaration is a declaration and can therefore be used repeatedly
// where (and only where) multiple declarations are allowed.
;
// C++11 [namespace.udecl]p3:
// In a using declaration used as a member-declaration, the nested-name-
// specifier shall name a base class of the class being defined.
// If such a using-declaration names a constructor, the nested-name-specifier
// shall name a direct base class of the class being defined.
;
;
;
B<bool> bb;
B<char> bc;
B<double> bd; // expected-note {{here}}
;
C<bool> cb;
C<char> cc; // expected-note {{here}}
;
;
E<bool> eb; // expected-note {{here}}
;
F<bool> fb; // expected-note {{here}}
;
G<B1> ;
G<const B1> ;