X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Ftemplate10.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.jason%2Ftemplate10.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=18a574a28ebaa0407ca7665eff0e5788651c8719;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template10.C b/gcc/testsuite/g++.old-deja/g++.jason/template10.C deleted file mode 100644 index 18a574a2..00000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/template10.C +++ /dev/null @@ -1,26 +0,0 @@ -// Bug: member operator shadows global template in tsubst. -// Build don't link: - -class ostream; - -template class smanip { -public: - friend ostream& operator<< <>(ostream &o, const smanip&m); -}; - -template -ostream& operator<<(ostream& o, const smanip& m) -{ return o;} - -class X -{ -public: - X operator<<(int); // commenting out this line makes it work! - void print(ostream& os); -}; - -void X::print(ostream& os) -{ - smanip smd; - os << smd; // gets bogus error -}