Path: utzoo!utgpu!watserv1!watmath!att!mcdchg!laidbak!ism.isc.com!uunet!vermont!jeffrey From: jeffrey@vermont.UUCP (Jeffrey Greenberg) Newsgroups: comp.lang.c++ Subject: Who's RIght? ZTC & GNU or SUN? Message-ID: <690@vermont.UUCP> Date: 19 Oct 90 14:12:48 GMT Organization: NYNEX Science and Technology, White Plains, N.Y. Lines: 22 zortech c++ 2.1 and gnu c++ compile the following code, which I believe is correct. However, the sun c++ 2.0 gives the error: "cannot initialize ::x with initializer list" Who is right? // the code... class dog { private: int x; }; dog x[4] = { 1,2,3,4 }; main() { } // This code works if the 'int x' is public... ~ Jeffrey Greenberg, Independent Consulting Nynex Science and Technology: (914) 287-5523