Commit eb37013f by Marek Polacek Committed by Marek Polacek

re PR c++/77548 (ICE on invalid C++ code with overloaded functions: in…

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
parent 8d7a99bd
2019-06-08 Marek Polacek <polacek@redhat.com> 2019-06-08 Marek Polacek <polacek@redhat.com>
PR c++/77548
* g++.dg/other/pr77548.C: New test.
PR c++/72845 PR c++/72845
* g++.dg/cpp0x/noexcept41.C: New test. * g++.dg/cpp0x/noexcept41.C: New test.
......
// 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" }
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment