PR c++/91923 - failure-to-SFINAE with class type NTTP in C++17.
authorMarek Polacek <polacek@redhat.com>
Sat, 28 Sep 2019 11:36:36 +0000 (11:36 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Sat, 28 Sep 2019 11:36:36 +0000 (11:36 +0000)
commit028c9b3be468a5dbd27e3190b14d60b04ea02ff4
treea772b67e0ee5e04c2906c6b99d6e46b40c878a1a
parentc57a385006790d814e1f9ac4f4235a787c6c6e30
PR c++/91923 - failure-to-SFINAE with class type NTTP in C++17.

* pt.c (invalid_nontype_parm_type_p): Only emit errors when
tf_error.

* g++.dg/cpp0x/nontype5.C: New test.

From-SVN: r276248
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/nontype5.C [new file with mode: 0644]