diff --git a/clang/test/CXX/module/module.interface/p2-2.cpp b/clang/test/CXX/module/module.interface/p2-2.cpp --- a/clang/test/CXX/module/module.interface/p2-2.cpp +++ b/clang/test/CXX/module/module.interface/p2-2.cpp @@ -14,7 +14,7 @@ U bar(); }; -export template X::iterator; // expected-error {{cannot export 'iterator' as it is not at namespace scope}} +export template struct X::iterator; // expected-error {{cannot export 'iterator' as it is not at namespace scope}} export template void X::foo(); // expected-error {{cannot export 'foo' as it is not at namespace scope}} export template template U X::bar(); // expected-error {{cannot export 'bar' as it is not at namespace scope}} @@ -32,6 +32,6 @@ export template U Y::bar(); // expected-error {{cannot export 'bar' as it is not at namespace scope}} export { - template X::iterator; // expected-error {{cannot export 'iterator' as it is not at namespace scope}} - struct Y::iterator; // expected-error {{cannot export 'iterator' as it is not at namespace scope}} + template struct X::iterator; // expected-error {{cannot export 'iterator' as it is not at namespace scope}} + struct Y::iterator; // expected-error {{cannot export 'iterator' as it is not at namespace scope}} }