blob: 78b5a41648a76433bf267d205f5b0564d165bd96 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
// C++0x N2914.
struct X {
int i;
static int a;
};
using X::i; // expected-error{{using declaration can not refer to class member}}
using X::s; // expected-error{{using declaration can not refer to class member}}
void f() {
using X::i; // expected-error{{using declaration can not refer to class member}}
using X::s; // expected-error{{using declaration can not refer to class member}}
}
|