// RUN: %clang_cc1 -fsyntax-only -verify %s
// Don't crash (PR18284).
namespacen1{classA{};classC{ A a;};A::RunTest(){}// expected-error {{a type specifier is required for all declarations}}
voidf(){new C;}}// namespace n1
namespacen2{classA{};classC:publicA{};A::RunTest(){}// expected-error {{a type specifier is required for all declarations}}
voidf(){new C;}}// namespace n2