diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/overload20.C')
-rwxr-xr-x | gcc/testsuite/g++.old-deja/g++.jason/overload20.C | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/overload20.C b/gcc/testsuite/g++.old-deja/g++.jason/overload20.C new file mode 100755 index 0000000..998f6a7 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/overload20.C @@ -0,0 +1,11 @@ +// Bug: this code causes an internal compiler error 4. + +void f (char *); +void f (int); +struct A { + void f (); // ERROR - candidate + void f (int); // ERROR - candidate + void g () { + void (*p)(char *) = f; // ERROR - no matching function in scope + } +}; |