From: Edward_hill Newsgroups: comp.os.msdos.djgpp Subject: Re: New ANSI standard Date: Tue, 11 May 1999 10:04:01 +0100 Organization: GEC-Marconi Lines: 23 Message-ID: <3737F281.FA654288@nochance.com> References: <373752C8 DOT 2F62DBA9 AT swipnet DOT se> NNTP-Posting-Host: pc02372.gmsws.gecm.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.51 [en] (Win95; I) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Anders David Skarin wrote: [snip] : when gxx (gcc) tries to compile the following lines: : : 12 : for(treD_vertice *p = first; p->next; p=p-next) I hope this is a typo in your post only, ;p=p->next) is what I think you meant. : 13: p->next = new treD_vertice(0,x,y,z) : ( this is a run through some dynamically allocated pointers to allocate : a new one ) : : i get the following warnings: : : 13 : name lookup of 'p' changed for new ANSI 'for' scoping : 12 : using obsolete binding at 'p' Er dunno, if you have p=p-next in your proggie change it and compile again. Ed