Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!asuvax!noao-gemini!noao!arizona!sunquest!wendy From: wendy@sunquest.UUCP (Wendy Debray) Newsgroups: comp.lang.c++ Subject: cfront 2.0 bug, re general initializer in initializer list? Message-ID: <1972@sunquest.UUCP> Date: 13 Feb 90 00:01:26 GMT Organization: Sunquest Information Systems, Tucson Lines: 39 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