Skip to content
Snippets Groups Projects
Commit eb37013f authored by Marek Polacek's avatar Marek Polacek Committed by Marek Polacek
Browse files

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
No related branches found
No related tags found
No related merge requests found
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" }
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment