From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,85e23020c171db90,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-09-02 11:48:03 PST Path: bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!panix!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!europe.mecaflu.ec-lyon.fr!buffat From: buffat@europe.mecaflu.ec-lyon.fr (Buffat Marc) Newsgroups: comp.unix.osf.osf1 Subject: DEC cxx BUGc Date: 2 Sep 1994 17:26:22 GMT Organization: LMFA Distribution: world Message-ID: <347n7u$l7u@cismsun.univ-lyon1.fr> NNTP-Posting-Host: europe.mecaflu.ec-lyon.fr Keywords: DEC cxx BUG I am using the C++ compiler of DEC cxx with OSF 2.0, DEC C++ V1.3A-0 for DEC OSF/1 (Alpha) and I try to declare and use an array of class object (with no default constructor). I have some problem (i.e. a Segmentation fault) and I want to know if it is because I am doing wrong or because of a compiler bug Here is the example: #include #include class A { private: int N; float *tab; public: A(int n):N(n) { tab=new float[N]; } ~A() { delete tab; } float & operator()(int i) { return tab[i]; } friend ostream& operator<<(ostream &s,A &X); }; ostream& operator<<(ostream &s,A &X) { for (int i=0; i