// RUN: %clang_cc1 -fsyntax-only -verify %s // template class allocator; template struct char_traits; template, typename _Alloc = allocator<_CharT> > class basic_string; template const typename basic_string<_CharT, _Traits, _Alloc>::size_type basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_max_size // expected-error{{no member named '_Rep' in 'basic_string<_CharT, _Traits, _Alloc>'}} = (((npos - sizeof(_Rep_base))/sizeof(_CharT)) - 1) / 4; // PR7118 template class Foo { class Bar; void f() { Bar i; } };