1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
2000-11-03 Jakub Jelinek <jakub@redhat.com>
* g++.old-deja/g++.other/crash30.C: New test.
* g++.old-deja/g++.other/crash31.C: New test.
* g++.old-deja/g++.other/crash32.C: New test.
* g++.old-deja/g++.other/crash33.C: New test.
* g++.old-deja/g++.other/crash34.C: New test.
--- gcc/testsuite/g++.old-deja/g++.other/crash30.C.jj Fri Nov 3 16:28:25 2000
+++ gcc/testsuite/g++.old-deja/g++.other/crash30.C Fri Nov 3 13:33:30 2000
@@ -0,0 +1,16 @@
+// Build don't link:
+
+struct foo
+{
+ foo();
+ void x();
+};
+
+void foo::x() throw(bar) // ERROR - parse error
+{
+}
+
+void bar()
+{
+ foo x;
+}
--- gcc/testsuite/g++.old-deja/g++.other/crash31.C.jj Fri Nov 3 16:28:25 2000
+++ gcc/testsuite/g++.old-deja/g++.other/crash31.C Fri Nov 3 13:46:02 2000
@@ -0,0 +1,8 @@
+// Build don't link:
+
+namespace bar
+{
+struct foo
+{
+ foo();
+}; // ERROR - parse error
--- gcc/testsuite/g++.old-deja/g++.other/crash32.C.jj Fri Nov 3 16:28:25 2000
+++ gcc/testsuite/g++.old-deja/g++.other/crash32.C Fri Nov 3 14:36:58 2000
@@ -0,0 +1,29 @@
+// Build don't link:
+
+struct foo
+{
+ enum e
+ {
+ not // ERROR -
+ };
+ ~foo();
+ void x (foo *&a, bool b = (unsigned char)0);
+};
+
+namespace N
+{
+ struct bar;
+
+ template<class T>
+ struct baz
+ {
+ baz(T *p);
+ };
+
+ typedef baz<bar> c;
+}
+
+struct z
+{
+ int a;
+};
--- gcc/testsuite/g++.old-deja/g++.other/crash33.C.jj Fri Nov 3 16:28:25 2000
+++ gcc/testsuite/g++.old-deja/g++.other/crash33.C Fri Nov 3 14:52:06 2000
@@ -0,0 +1,12 @@
+// Build don't link:
+
+template <class T>
+inline const T& bar(const T& a, const T& b)
+{
+ return a < b ? b : a;
+}
+
+int foo(void)
+{
+ return bar(sizeof(int), sizeof(long));
+}
--- gcc/testsuite/g++.old-deja/g++.other/crash34.C.jj Fri Nov 3 16:28:25 2000
+++ gcc/testsuite/g++.old-deja/g++.other/crash34.C Fri Nov 3 15:50:27 2000
@@ -0,0 +1,21 @@
+// Build don't link:
+
+class v
+{
+ double x, y;
+public:
+ v();
+};
+
+class w : public v {
+public :
+ static const w X;
+ w();
+};
+
+void bar(w x);
+
+void foo()
+{
+ bar(w::X);
+}
|