Richard Smith | 762bb9d | 2011-10-13 22:29:44 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s |
Richard Smith | 3e4c6c4 | 2011-05-05 21:57:07 +0000 | [diff] [blame] | 2 | |
3 | template<typename T> using Id = T; // expected-note {{type alias template 'Id' declared here}} | ||||
4 | struct U { static Id<int> V; }; | ||||
Richard Smith | b79b17b | 2013-10-15 00:00:26 +0000 | [diff] [blame] | 5 | Id<int> ::U::V; // expected-error {{type 'Id<int>' (aka 'int') cannot be used prior to '::' because it has no members}} |