X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.benjamin%2Ftem02.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.benjamin%2Ftem02.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=38a8f1d5e2b8c4f92405f1e51c0eec95bc87a9af;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.benjamin/tem02.C b/gcc/testsuite/g++.old-deja/g++.benjamin/tem02.C deleted file mode 100644 index 38a8f1d5..00000000 --- a/gcc/testsuite/g++.old-deja/g++.benjamin/tem02.C +++ /dev/null @@ -1,54 +0,0 @@ -// Build don't link: -//980519 bad error from nathan -//$ egcs -fhonor-std -nostdinc -c redef.C -//redef.C:56: redefinition of default argument for `class _Traits' - -template struct char_traits; -template struct char_traits { }; -template<> struct char_traits; -template<> struct char_traits { }; - -template > class istreambuf_iterator; - - -template - class istreambuf_iterator -{ - public: - typedef _Traits traits_type; - class _Proxy; - public: - inline istreambuf_iterator() throw(); - inline istreambuf_iterator(const _Proxy& __p) throw(); -}; - - -template - class istreambuf_iterator<_CharT,_Traits>::_Proxy -{ - public: - _CharT operator*(); - - //bug -g++ w/ decl "redef", no decl no prob. - //ok -edg: no warnings - friend class istreambuf_iterator; // XXX OK? - - //bug -g++ w/ decl "redef", no decl no prob. - //ok -edg: no warnings - //friend class istreambuf_iterator<_CharT,_Traits>; - - //bug -g++ w/ decl "redef", no decl no prob. - //ok -edg: declaration of "_CharT" and "_Traits" hides template parameter - //template friend class istreambuf_iterator; - - //ok -g++ - //ok -edg - //friend class istreambuf_iterator<_CharT>; - -}; - - - -//explicit instantiation of a nested class -template class istreambuf_iterator >::_Proxy; -