Path: utzoo!utgpu!watmath!watcgl!watsup!al From: al@watsup.waterloo.edu (Al Vermeulen) Newsgroups: comp.lang.c++ Subject: cfront 1.2.1 bug? Keywords: is it a bug, or is it me? is it fixed in 2.0? Message-ID: <9640@watcgl.waterloo.edu> Date: 11 May 89 02:05:46 GMT Sender: daemon@watcgl.waterloo.edu Distribution: comp Lines: 30 Could someone please explain to me what is wrong with this code? It seems innocent enough. Does it compile with cfront 2.0? To get around this problem I've been passing references to functions like func and then creating a local variable in func (gross, eh?). code: struct A { A::A( A& ) {} }; void func( A ) { } void func2() { A a; func(a); } cfront 1.2.1 says: "weird.cc", line 13: error: argument 1 of type A & expected for A::A() 1 error -- Al Vermeulen (al@watsup, ahvermen@watcgl) al@watsup.waterloo.edu