4 //-------------------------------------------------------------
5 // Referential declaration within class
7 // Imbeded below is the invocation of the compiler and the error
10 // This compiles successfully with both the xlC and CFRONT compilers
11 // This was reviewed with Clem Dickey and we agree that it appears to
12 // be a Cygnus compiler problem.
13 //-------------------------------------------------------------
15 $ make bug.reference.o
16 /usr/p3/bin/i960-vxworks-g++ `getsrc bug.reference.C` -I. -Iinc1 -Iinc2
17 -I/vw5.0.3/h -I/vw5.0.3/h/i960 -I/usr/p3/lib/gcc-lib/i960-vxworks/cygnus-2.3.3
18 /include -I/usr/p3/lib/gcc-lib/i960-vxworks/cygnus-2.3.3-930417/include -I/usr/p
19 3/lib/i960-vxworks/include -I/usr/p3/i960-vxworks/include -c -DCPU_FAMILY=I960
20 -DCPU=I960CA -mca -mold-align -g3 -O1 -DASSERT_ON -nostdinc -nostdinc++ -MD
21 ./bug.reference.C: In method `class1::class1 (long unsigned int, long unsigned i
23 ./bug.reference.C:43: cannot convert type `long unsigned int **'
24 ./bug.reference.C:43: to type `long unsigned int *[]&'
25 make: 1254-004 The error code from the last command is 1.
29 typedef unsigned long u32;
35 class1(const class1 &); // Copy constructor
36 class1& operator=(const class1 &); // operator= member function
44 // member function defs
45 class1::class1(u32 u, ul &l) : var1(u), ulref(l)
48 /* ===========================================================================
49 Note: The following is a "work around" that allows the successful compilation.
53 typedef unsigned long u32;
59 class1(const class1 &); // Copy constructor
60 class1& operator=(const class1 &); // operator= member function
68 // member function defs
69 class1::class1(u32 u, ul *l) : var1(u), ulref(*l)
71 ============================================================================*/