From: Marek Polacek Date: Fri, 6 Dec 2019 22:12:51 +0000 (+0000) Subject: Add test for c++/92451. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=070455950d3234009059b252d9b5f393682d20c6;p=gcc.git Add test for c++/92451. This was ICEing from r277865 to r278786. * g++.dg/overload/error4.C: New test. From-SVN: r279067 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d92686c859f..3c59ce91f1a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-12-06 Marek Polacek + + PR c++/92451 + * g++.dg/overload/error4.C: New test. + 2019-12-06 Jakub Jelinek * g++.dg/cpp2a/feat-cxx2a.C: Don't test __cpp_consteval for now. diff --git a/gcc/testsuite/g++.dg/overload/error4.C b/gcc/testsuite/g++.dg/overload/error4.C new file mode 100644 index 00000000000..7336acff0d2 --- /dev/null +++ b/gcc/testsuite/g++.dg/overload/error4.C @@ -0,0 +1,6 @@ +// PR c++/92451 + +template struct Local {}; +void f() { + Local(int); // { dg-error "" } +}