Path: utzoo!utgpu!watserv1!watmath!att!tut.cis.ohio-state.edu!snorkelwacker!ira.uka.de!smurf!nadia!ananke!kaiser From: kaiser@ananke.stgt.sub.org (Andreas Kaiser) Newsgroups: comp.lang.c++ Subject: Zortech bug #24 - member access in static member function Message-ID: <17.26EA603B@ananke.stgt.sub.org> Date: 9 Sep 90 15:29:00 GMT Organization: Ananke, Stuttgart, FRG Lines: 43 #if 0 The following example should print an error message, because the non-static member should not be accessible within the static member function . Instead I got bad code (in this example) or an invalid fixup record (in a larger program). Compiled with ZTC++ 2.12: ztc -c err_24.cpp #endif /*---------------------------------------------------------*/ struct S { int i; static void f(); }; void S::f() { i = 0; } main() { } #if 0 /*----------------------------------------------------------*/ [....] public _f__1SNv,_main extrn _S <-------- [....] _f__1SNv: mov _S,0 <-------- ret [....] #endif Gruss, Andreas --- -- :::::::::::::::::::: Smart: kaiser@ananke.stgt.sub.org :: Andreas Kaiser :: Bang: ...!smurf.sub.org!nadia!ananke!kaiser :::::::::::::::::::: Fido: 2:507/18.7206 & 2:509/5.2512