Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » CDT 2.1 : BUG / Problem : "Report Semantic Problems"
CDT 2.1 : BUG / Problem : "Report Semantic Problems" [message #133528] Wed, 05 January 2005 13:09 Go to next message
Eclipse UserFriend
Originally posted by: an.nym.us

for(int nIndex = 0; nIndex < m_nIndex; nIndex++)
{
a[nIndex].m_p->DoSth();
}


for(int nIndex = 0; nIndex < m_nIndex; nIndex++)
{
a[nIndex].m_p->DoSthElse();
}

the nIndex in the second for Loop is reported as "invalid overload of the
name" is this correct ? As far as I know nIdnex only lives in the for loop
so there should be not such warning ? Or am I wrong ?

Thanks for your help.
Re: CDT 2.1 : BUG / Problem : "Report Semantic Problems" [message #133596 is a reply to message #133528] Wed, 05 January 2005 17:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mpinto.brturbo.com

You are right

--
Marcelo Pinto

"Sascha" <an@nym.us> escreveu na mensagem
news:crgotd$epk$1@www.eclipse.org...
> for(int nIndex = 0; nIndex < m_nIndex; nIndex++)
> {
> a[nIndex].m_p->DoSth();
> }
>
>
> for(int nIndex = 0; nIndex < m_nIndex; nIndex++)
> {
> a[nIndex].m_p->DoSthElse();
> }
>
> the nIndex in the second for Loop is reported as "invalid overload of the
> name" is this correct ? As far as I know nIdnex only lives in the for loop
> so there should be not such warning ? Or am I wrong ?
>
> Thanks for your help.
>
Re: CDT 2.1 : BUG / Problem : "Report Semantic Problems" [message #133631 is a reply to message #133596] Wed, 05 January 2005 20:13 Go to previous message
John Camelon is currently offline John CamelonFriend
Messages: 242
Registered: July 2009
Senior Member
Please raise a bug on CDT/CDT-Parser.
Thanks

"Marcelo Pinto" <mpinto@brturbo.com> wrote in message
news:crh6mf$23v$1@www.eclipse.org...
> You are right
>
> --
> Marcelo Pinto
>
> "Sascha" <an@nym.us> escreveu na mensagem
> news:crgotd$epk$1@www.eclipse.org...
> > for(int nIndex = 0; nIndex < m_nIndex; nIndex++)
> > {
> > a[nIndex].m_p->DoSth();
> > }
> >
> >
> > for(int nIndex = 0; nIndex < m_nIndex; nIndex++)
> > {
> > a[nIndex].m_p->DoSthElse();
> > }
> >
> > the nIndex in the second for Loop is reported as "invalid overload of
the
> > name" is this correct ? As far as I know nIdnex only lives in the for
loop
> > so there should be not such warning ? Or am I wrong ?
> >
> > Thanks for your help.
> >
>
>
Previous Topic:Customizable syntax highlighting
Next Topic:OS X, CDT debug problem: Exception processing debug async queue
Goto Forum:
  


Current Time: Fri Nov 28 11:33:15 GMT 2014

Powered by FUDForum. Page generated in 0.02008 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software