X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fcrash28.C;fp=gcc%2Ftestsuite%2Fg%2B%2B.old-deja%2Fg%2B%2B.other%2Fcrash28.C;h=0000000000000000000000000000000000000000;hb=6fed43773c9b0ce596dca5686f37ac3fc0fa11c0;hp=94c977ab6a03fd08f4c5a709dd6b4704afbb0cba;hpb=27b11d56b743098deb193d510b337ba22dc52e5c;p=msp430-gcc.git diff --git a/gcc/testsuite/g++.old-deja/g++.other/crash28.C b/gcc/testsuite/g++.old-deja/g++.other/crash28.C deleted file mode 100644 index 94c977ab..00000000 --- a/gcc/testsuite/g++.old-deja/g++.other/crash28.C +++ /dev/null @@ -1,35 +0,0 @@ -// Build don't link: -// Origin: Jakub Jelinek - -namespace N -{ - class X; - template - class Y - { - public: - inline Y () {} - inline operator const Y & () const - { - return *reinterpret_cast *>(this); - } - }; -} -class bar -{ -public: - inline bar () {} - inline bar (const ::N::Y< ::N::X>& a); -}; - -class foo -{ - bool b; -public: - foo(); - void x () throw(bar); -}; -void foo::x() throw(bar) -{ - if (!b) throw bar (static_cast<::N::X*>(this)); // ERROR - parse error -}