wendy@sunquest.UUCP (Wendy Debray) (02/13/90)
This is a repost of a question from a few weeks ago, which received no
reponses. The following code :
struct x{
int z;
};
int *a[] = {
&( ( (struct x *)0)->z)
};
main() {
}
gives the following compiler error message :
line 5: sorry, not implemented: general initializer in initializer list
The same code is acceptable in cc, OASYS Designer C++, and g++ version
1.34.2. But SUN's C++, which claims to be a direct port of AT&T's 2.0 C++,
gives this error.
- Can anyone comment on why this wasn't implemented in C++, but is implemented
in C?
- What is "general" about this initializer?
Thanks in advance -
--------------------------------------------------------------------
Wendy Debray wendy@sunquest.com
Sunquest Information Systems sunquest!wendy@arizona.edu
930 N. Finance Center Dr. {arizona,uunet}!sunquest!wendy
Tucson, AZ, 85710 602-885-7700