Path: utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!RESEARCH.ATT.COM!ark From: ark@RESEARCH.ATT.COM Newsgroups: gnu.g++ Subject: (none) Message-ID: <8902210118.AA15117@prep.ai.mit.edu> Date: 20 Feb 89 18:33:58 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 29 Daniel Edelson reports trouble with the following C++ program: #include void foo(float l); void bar (float *lp); main() { float l=1.5; cout << "main: l == " << l << "\n"; foo(l); } void foo(float l) { cout << "foo: l == " << l << "\n"; bar(&l); } void bar (float *lp) { cout << "bar: *lp == " << *lp << "\n"; } When I it, it works fine -- but of course I don't have the same software he does. Looking at what he's trying to do, though, I wonder if it might be a problem in his underlying C compiler. Might I suggest hand translating this program into C and trying it?