diff mbox series

[committed] Add test for c++/92451

Message ID 20191206221348.GR119925@redhat.com
State New
Headers show
Series [committed] Add test for c++/92451 | expand

Commit Message

Marek Polacek Dec. 6, 2019, 10:13 p.m. UTC
This was ICEing from r277865 to r278786.

Tested on x86_64-linux, applying to trunk.

2019-12-06  Marek Polacek  <polacek@redhat.com>

	PR c++/92451
	* g++.dg/overload/error4.C: New test.
diff mbox series

Patch

--- /dev/null
+++ gcc/testsuite/g++.dg/overload/error4.C
@@ -0,0 +1,6 @@ 
+// PR c++/92451
+
+template<typename T> struct Local {};
+void f() {
+  Local(int); // { dg-error "" }
+}