Use APSInt::isSameValue instead of operator== in a place where two APSInt's
may have different sizes. Fixes PR22017
llvm-svn: 225488
diff --git a/clang/test/SemaTemplate/enum-bool.cpp b/clang/test/SemaTemplate/enum-bool.cpp
new file mode 100644
index 0000000..31a96e3
--- /dev/null
+++ b/clang/test/SemaTemplate/enum-bool.cpp
@@ -0,0 +1,11 @@
+// %RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o %t
+
+enum E : bool { A };
+template <E>
+struct S {
+ struct Inner {
+ Inner() {}
+ };
+};
+
+template class S<A>;