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:
parent
8d7a99bd33
commit
eb37013fb5
2 changed files with 12 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
9
gcc/testsuite/g++.dg/other/pr77548.C
Normal file
9
gcc/testsuite/g++.dg/other/pr77548.C
Normal 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" }
|
||||
};
|
Loading…
Add table
Reference in a new issue