Add test for c++/92451.

This was ICEing from r277865 to r278786.

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

From-SVN: r279067
This commit is contained in:
Marek Polacek 2019-12-06 22:12:51 +00:00 committed by Marek Polacek
parent 94a0f396ea
commit 070455950d
2 changed files with 11 additions and 0 deletions

View 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.

View file

@ -0,0 +1,6 @@
// PR c++/92451
template<typename T> struct Local {};
void f() {
Local(int); // { dg-error "" }
}