'gcc-3_3-branch'.
From-SVN: r76251
--- /dev/null
+// PR c++/13574
+// { dg-options "" }
+
+class A {
+public:
+ A() : argc(0), argv() { };
+private:
+ int argc;
+ char* argv[];
+};
+
+int main() {
+ A y;
+}
--- /dev/null
+// PR c++/13478
+
+struct A {};
+struct B : protected A {
+ B() {};
+ B(const A& ) {};
+private:
+ B(const B& ) {};
+};
+
+void foo(const A* ap)
+{
+ const B& br = *ap;
+}
--- /dev/null
+// { dg-do compile }
+
+// Origin: gianni@mariani.ws
+// Wolfgang Bangerth <bangerth@ticam.utexas.edu>
+
+// PR c++/13289: ICE recursively instantiate static member data.
+
+template <int N> struct S {
+ static const int C;
+};
+
+template <int N>
+const int S<N>::C = S<(N+1)%2>::C;
+
+template struct S<1>;
+
--- /dev/null
+/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
+/* { dg-options "-O2" } */
+/* { dg-final { scan-assembler "testb" } } */
+ftn (char *sp)
+{
+ char status;
+
+ while (1)
+ {
+ *sp = 0xE8;
+ status = *(volatile char *) sp;
+ if (status & 0x80)
+ break;
+ }
+}