X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900324_06.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.bugs%2F900324_06.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=5a1938af8b80a45f9460574a3c594b9884baefe6;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.bugs/900324_06.C b/gcc/testsuite/g++.old-deja/g++.bugs/900324_06.C deleted file mode 100644 index 5a1938af..00000000 --- a/gcc/testsuite/g++.old-deja/g++.bugs/900324_06.C +++ /dev/null @@ -1,28 +0,0 @@ -// g++ 1.37.1 bug 900324_06 - -// g++ is unable to use context information (i.e. the required type of the -// expression) to disambiguate a possibly overloaded function name when that -// name is used as either the second or the third operand of a ?: operator. - -// It is also unable to use the fact that the given name is not in fact -// overloaded (and has only one possible interpretation). - -// This results in improper errors being generated. - -// keywords: overloading, function pointers, disambiguation, operator?: - -int i; -void (*p)(); - -void function_0 () -{ -} - -void function_1 () -{ - p = i ? function_0 : 0; // gets bogus error - p = i ? 0 : function_0; // gets bogus error - p = i ? function_1 : function_0; // gets bogus error -} - -int main () { return 0; }