From 070455950d3234009059b252d9b5f393682d20c6 Mon Sep 17 00:00:00 2001 From: Marek Polacek Date: Fri, 6 Dec 2019 22:12:51 +0000 Subject: [PATCH] Add test for c++/92451. This was ICEing from r277865 to r278786. * g++.dg/overload/error4.C: New test. From-SVN: r279067 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/overload/error4.C | 6 ++++++ 2 files changed, 11 insertions(+) create mode 100644 gcc/testsuite/g++.dg/overload/error4.C 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 "" } +} -- 2.30.2