]> granicus.if.org Git - clang/commitdiff
Hopefully unbreak bots which are seeing an assert in this test. Temporary, real
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 24 Sep 2013 05:07:58 +0000 (05:07 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 24 Sep 2013 05:07:58 +0000 (05:07 +0000)
fix to come once I've tracked down the problem (which is pre-existing and not
related to the change which introduced this test).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191279 91177308-0d34-0410-b5e6-96231b3b80d8

test/CXX/temp/temp.decls/temp.class.spec/p8-1y.cpp

index 24513b78fa51750e09c8a00e9202bab288247986..a49db5166a459b89520d5d41859c9b614bd4532c 100644 (file)
@@ -26,4 +26,10 @@ template<typename Outer> struct X {
 };
 template<typename Outer> template<typename Inner> int X<Outer>::y<Outer>; // expected-warning {{can not be deduced}} expected-note {{'Inner'}}
 template<typename Outer> template<typename Inner> int X<Outer>::y<Inner>; // expected-error {{does not specialize}}
-template<> template<typename Inner> int X<int>::y<Inner>; // expected-error {{does not specialize}}
+
+// FIXME: Merging this with the above class causes an assertion failure when
+// instantiating one of the bogus partial specializations.
+template<typename Outer> struct Y {
+  template<typename Inner> static int y;
+};
+template<> template<typename Inner> int Y<int>::y<Inner>; // expected-error {{does not specialize}}