From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Newsgroups: comp.os.msdos.djgpp Subject: Re: Clobbering Date: 20 Oct 1997 06:08:40 GMT Organization: The National Capital FreeNet Lines: 19 Message-ID: <62esh8$egs@freenet-news.carleton.ca> References: Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) NNTP-Posting-Host: freenet6.carleton.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk "Anthony.Appleyard" (MCLSSAA2 AT fs2 DOT mt DOT umist DOT ac DOT uk) writes: > macros.cc:395: warning: variable `class val * this' might be clobbered by > `longjmp' or `vfork' > > Confusingly, this line is in a function `void buffer::translate()', and I > would have thought that the current `this*' would be a `class buffer*' not a > `class val*'! The offending line is:- > if(T1.n>0) namemacro(val(1,0),T1,val(Record)); *K=*Record;} > where val() is a constructor for a `class val' that I declared. If the val constructor you used is inlined, then it will report a problem with val *this in that constructor on some line that calls it, such as the one above. -- .*. Where feelings are concerned, answers are rarely simple [GeneDeWeese] -() < When I go to the theater, I always go straight to the "bag and mix" `*' bulk candy section...because variety is the spice of life... [me] Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh