// RUN: %clang_cc1 -pedantic-errors -std=c++11 -emit-pch %s -o %t
// RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t -verify %s
// RUN: %clang_cc1 -pedantic-errors -std=c++11 -emit-pch -fpch-instantiate-templates %s -o %t
// RUN: %clang_cc1 -pedantic-errors -std=c++11 -include-pch %t -verify %s
;
S<int> a;
S<long>::E b;
S<double>::E c;
;
int k1 = S<int>::E::e;
int k2 = decltype::e;
int k3 = decltype::e; // expected-error@13 {{conversion from 'double' to 'int'}} expected-note {{here}}
int k4 = S<char>::E::e;