1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 // This is not well-formed C++ but used to crash in sema.
8 struct A
{ // expected-note {{not-yet-instantiated member is declared here}}
31 friend void A
<U
>::template B
<V
>::template C
<W
>::template D
<X
>::template E
<Y
>::operator+=(Z
); // expected-warning {{not supported}} expected-error {{no member 'A' in 'X<int>'; it has not yet been instantiated}}
35 X
<int>::A
<int>::B
<int>::C
<int>::D
<int>::E
<int>() += 1.0; // expected-note {{in instantiation of template class 'X<int>' requested here}}