Commit 4cfa9223 by Jason Merrill

update

From-SVN: r25491
parent 2faa455b
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
// keywords: abort, incomplete types, reference types, formal parameters // keywords: abort, incomplete types, reference types, formal parameters
struct s0; struct s0; // ERROR - forward declaration
void function (struct s0 &arg1, struct s0 &arg2) void function (struct s0 &arg1, struct s0 &arg2)
{ {
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
// keywords: friends, incomplete types, function members // keywords: friends, incomplete types, function members
struct A; struct A; // ERROR - forward declaration
struct B { struct B {
friend void A::foo(); // ERROR - type A is incomplete friend void A::foo(); // ERROR - type A is incomplete
......
...@@ -17,35 +17,35 @@ int i; ...@@ -17,35 +17,35 @@ int i;
void *pv; void *pv;
volatile void *pvv; volatile void *pvv;
struct s; struct s; // ERROR - forward declaration
extern struct s es, *ps; extern struct s es, *ps; // ERROR - defined here
extern volatile struct s evs, *pvs; extern volatile struct s evs, *pvs; // ERROR - defined here
void pv_test () void pv_test ()
{ {
*pv; // ERROR - , XFAIL *-*-* *pv; // ERROR - invalid void
(i ? *pv : *pv); // ERROR - , XFAIL *-*-* (i ? *pv : *pv); // ERROR - invalid void
*pv, *pv; // ERROR - , XFAIL *-*-* *pv, *pv; // ERROR - invalid void
*pvv; // ERROR - , XFAIL *-*-* *pvv; // ERROR - invalid void
(i ? *pvv : *pvv); // ERROR - , XFAIL *-*-* (i ? *pvv : *pvv); // ERROR - invalid void
*pvv, *pvv; // ERROR - , XFAIL *-*-* *pvv, *pvv; // ERROR - invalid void
es; // ERROR - , XFAIL *-*-* es; // ERROR - incomplete
(i ? es : es); // ERROR - , XFAIL *-*-* (i ? es : es); // ERROR - undefined type
es, es; // ERROR - , XFAIL *-*-* es, es; // ERROR - incomplete
evs; // ERROR - , XFAIL *-*-* evs; // ERROR - incomplete
(i ? evs : evs); // ERROR - , XFAIL *-*-* (i ? evs : evs); // ERROR - undefined type
evs, evs; // ERROR - , XFAIL *-*-* evs, evs; // ERROR - incomplete
*ps; // ERROR - , XFAIL *-*-* *ps; // ERROR - undefined type
(i ? *ps : *ps); // ERROR - , XFAIL *-*-* (i ? *ps : *ps); // ERROR - undefined type
*ps, *ps; // ERROR - , XFAIL *-*-* *ps, *ps; // ERROR - undefined type
*pvs; // ERROR - , XFAIL *-*-* *pvs; // ERROR - undefined type
(i ? *pvs : *pvs); // ERROR - , XFAIL *-*-* (i ? *pvs : *pvs); // ERROR - undefined type
*pvs, *pvs; // ERROR - , XFAIL *-*-* *pvs, *pvs; // ERROR - undefined type
} }
int main () { return 0; } int main () { return 0; }
...@@ -11,15 +11,15 @@ ...@@ -11,15 +11,15 @@
// keywords: inheritance, ambiguity resolution, members // keywords: inheritance, ambiguity resolution, members
struct base_0 { struct base_0 {
enum { base_member }; enum { base_member }; // ERROR - candidate (26, 30)
}; };
struct base_1 { struct base_1 {
int base_member; int base_member; // ERROR - candidate (26, 34)
}; };
struct base_2 { struct base_2 {
int base_member (); int base_member (); // ERROR - candidate (30, 34)
}; };
struct derived_0 : public base_0, public base_1 { struct derived_0 : public base_0, public base_1 {
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
//Based on a report by Bill Currie <bcurrie@tssc.co.nz> //Based on a report by Bill Currie <bcurrie@tssc.co.nz>
struct foo { struct foo {
protected: protected:
int x; int x; // ERROR - candidate
}; };
struct bar { struct bar {
public: public:
int x(); int x(); // ERROR - candidate
}; };
struct foobar: public foo, public bar { struct foobar: public foo, public bar {
......
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
struct DIAGTYP { struct DIAGTYP {
}; };
struct DIAGTYP1 { struct DIAGTYP1 {
struct DIAGTYP; struct DIAGTYP; // ERROR - forward declaration
void bar() { new struct DIAGTYP; } // ERROR - undefined void bar() { new struct DIAGTYP; } // ERROR - undefined
void foo() { new struct DIAGTYP1; } void foo() { new struct DIAGTYP1; }
}; };
int main () { int main () {
struct DIAGTYP; struct DIAGTYP; // ERROR - forward declaration
struct DIAGTYP *lerror_desc; struct DIAGTYP *lerror_desc;
lerror_desc= new struct DIAGTYP; // ERROR - undefined lerror_desc= new struct DIAGTYP; // ERROR - undefined
} }
......
// Build don't link:
void x()
{
int* p = 1==0;
}
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
template <class T, int i> template <class T, int i>
struct K { struct K {
void f(); void f();
}; }; // ERROR - forward declaration
template <class T> template <class T>
void void
......
...@@ -16,7 +16,7 @@ public: ...@@ -16,7 +16,7 @@ public:
} }
}; };
class B : public A< B > class B : public A< B > // ERROR - forward declaration
{ {
public: public:
typedef int myT; typedef int myT;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment