From: Jakub Jelinek Date: Tue, 10 Oct 2017 20:10:00 +0000 (+0200) Subject: re PR c++/71875 (template specialization compile error) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da31baba47d88a9c2f78a3dbe5585541b96cf2c3;p=gcc.git re PR c++/71875 (template specialization compile error) PR c++/71875 * g++.dg/cpp1y/pr71875.C: New test. From-SVN: r253613 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 7e52744c9f2..307acde68c8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,8 @@ 2017-10-10 Jakub Jelinek + PR c++/71875 + * g++.dg/cpp1y/pr71875.C: New test. + PR c++/77578 * g++.dg/gomp/pr77578.C: New test. diff --git a/gcc/testsuite/g++.dg/cpp1y/pr71875.C b/gcc/testsuite/g++.dg/cpp1y/pr71875.C new file mode 100644 index 00000000000..4d317966cea --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1y/pr71875.C @@ -0,0 +1,24 @@ +// PR c++/71875 +// { dg-do link { target c++14 } } + +template +constexpr bool IsMatrix = false; + +template +class Matrix {}; + +template +constexpr bool IsMatrix> = true; + +template +class RowVecExpMatrix; + +template +constexpr bool IsMatrix> = true; + +int +main () +{ + static_assert (IsMatrix>>, "Matrix check error"); + static_assert (IsMatrix>, "Input type is not a matrix"); +}