]> oss.titaniummirror.com Git - msp430-gcc.git/blobdiff - gcc/testsuite/g++.old-deja/g++.other/crash28.C
Imported gcc-4.4.3
[msp430-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / crash28.C
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 (file)
index 94c977a..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-// Build don't link:
-// Origin: Jakub Jelinek <jakub@redhat.com>
-
-namespace N
-{
-  class X;
-  template <class T>
-  class Y
-  {
-  public:
-    inline Y () {}
-    inline operator const Y<X> & () const
-    {
-      return *reinterpret_cast<const Y<X> *>(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
-}