From: Paolo Carlini Date: Mon, 10 Jun 2013 16:07:29 +0000 (+0000) Subject: re PR c++/52440 ([C++11] Wrong template argument deduction/substitution failures) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f88ce95e40f1767057cefb06df0c18534ab51d6a;p=gcc.git re PR c++/52440 ([C++11] Wrong template argument deduction/substitution failures) 2013-06-10 Paolo Carlini PR c++/52440 * g++.dg/cpp0x/pr52440.C: New. From-SVN: r199899 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1727138fb98..b718d6947ee 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2013-06-10 Paolo Carlini + + PR c++/52440 + * g++.dg/cpp0x/pr52440.C: New. + 2013-06-10 Jakub Jelinek PR target/56564 diff --git a/gcc/testsuite/g++.dg/cpp0x/pr52440.C b/gcc/testsuite/g++.dg/cpp0x/pr52440.C new file mode 100644 index 00000000000..0210f53b9d9 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/pr52440.C @@ -0,0 +1,27 @@ +// PR c++/52440 +// { dg-do compile { target c++11 } } + +template +struct V +{ + typedef void type; +}; + +template +struct X +{ + template + static constexpr bool always_true() + { + return true; + } + + template()>::type> + X(U &&) {} +}; + +int main() +{ + X x(42); +}