re PR c++/77548 (ICE on invalid C++ code with overloaded functions: in instantiate_type, at cp/class.c:8270)

PR c++/77548
	* g++.dg/other/pr77548.C: New test.

From-SVN: r272079
This commit is contained in:
Marek Polacek 2019-06-08 13:13:48 +00:00 committed by Marek Polacek
parent 8d7a99bd33
commit eb37013fb5
2 changed files with 12 additions and 0 deletions

View file

@ -1,5 +1,8 @@
2019-06-08 Marek Polacek <polacek@redhat.com>
PR c++/77548
* g++.dg/other/pr77548.C: New test.
PR c++/72845
* g++.dg/cpp0x/noexcept41.C: New test.

View file

@ -0,0 +1,9 @@
// PR c++/77548
// { dg-do compile }
// { dg-options "" }
struct S
{
int f (void) { return 0; }
int f (int) { return f ? : 1; } // { dg-error "cannot resolve overloaded function" }
};