From: Serge Pavlov Date: Mon, 5 Aug 2013 18:38:16 +0000 (+0000) Subject: Regression test for PR12699 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3cb443636fb3ca457994d91527a22c5b159e5169;p=clang Regression test for PR12699 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@187734 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp b/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp index 6a63b029de..4960a2bac2 100644 --- a/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp +++ b/test/CXX/temp/temp.decls/temp.variadic/sizeofpack.cpp @@ -175,3 +175,29 @@ namespace pr15112 auto c1 = mkcoords(0ul, 0ul, 0ul); } + + +namespace pr12699 { + +template +struct bool_constant +{ + static const bool value = B; +}; + +template +struct F +{ + template + using SameSize = bool_constant; + + template> + F(B...) { } +}; + +void func() +{ + F f1(3); +} + +}