Add test for c++/92451.
authorMarek Polacek <polacek@redhat.com>
Fri, 6 Dec 2019 22:12:51 +0000 (22:12 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Fri, 6 Dec 2019 22:12:51 +0000 (22:12 +0000)
This was ICEing from r277865 to r278786.

* g++.dg/overload/error4.C: New test.

From-SVN: r279067

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/overload/error4.C [new file with mode: 0644]

index d92686c859fcf4e834ce9874b8c2fb876c6bbde5..3c59ce91f1a688e46d028c8b48243fd4d0ebe4c6 100644 (file)
@@ -1,3 +1,8 @@
+2019-12-06  Marek Polacek  <polacek@redhat.com>
+
+       PR c++/92451
+       * g++.dg/overload/error4.C: New test.
+
 2019-12-06  Jakub Jelinek  <jakub@redhat.com>
 
        * 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 (file)
index 0000000..7336acf
--- /dev/null
@@ -0,0 +1,6 @@
+// PR c++/92451
+
+template<typename T> struct Local {};
+void f() {
+  Local(int); // { dg-error "" }
+}