blob: 4b5226b26ebbde5b5f4a1f566f456dbb23601b94 (
about) (
plain)
1
2
3
4
5
6
|
// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
template<typename T> using Id = T; // expected-note {{type alias template 'Id' declared here}}
struct U { static Id<int> V; };
Id<int> ::U::V; // expected-error {{type 'Id<int>' (aka 'int') cannot be used prior to '::' because it has no members}} \
expected-error {{C++ requires a type specifier}}
|