// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
// The nested-name-specifier of a qualified declarator-id shall not begin with a decltype-specifier.
;
int decltype::i; // expected-error{{'decltype' cannot be used to name a declaration}}
void decltype
;
int decltype::i; // expected-error{{nested name specifier 'decltype(tfoo<T>())::' for declaration does not refer into a class, class template or class template partial specialization}}
void decltype
// An init-declarator named with a qualified-id can refer to an element of the
// inline namespace set of the named namespace.