/GX compiler option

P

Param

Hi ,
I have faced a strange problem. I have a code something like this...
while(!a)
{
if( condition )
{
continue; // 1
}
try
{
if ( condition )
{
if( some more condition )
{
a = 1;
continue; // 2
}
else
{
continue; // 3
}
}
else
{
}
}// end try
catch(...)
{
} // end catch
}// end while

In this piece of code with the continue keyword used i expect it to go back to the outer while... This happens in all the if statements for e.g. with the continue 1.
But the presence of continue keyword in the try block gave me an INTERNAL COMPILER ERROR . This got solved when i gave a preprocessor option called /Gx. This was prompted to me as a warnig by the compiler which solved this problem.

Now i have not understood why was this an error and how does /Gx option help in that .

Thanks
Param
 
M

Michiel Salters

Param said:
Hi ,
I have faced a strange problem. I have a code something like this...
while(!a) ....

In this piece of code with the continue keyword used i expect it to go
back to the outer while... This happens in all the if statements for
e.g. with the continue 1.
But the presence of continue keyword in the try block gave me an
INTERNAL COMPILER ERROR . This got solved when i gave a preprocessor
option called /Gx. This was prompted to me as a warnig by the compiler
which solved this problem.

We can't help you, this group is only about standard C++ and that
doesn't specify compiler options. You don't even say which compiler,
so we can't point you to the right group for that compiler. Google
can tell you that if you tell it what compiler you have.

Regards,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,138
Messages
2,570,804
Members
47,349
Latest member
jojonoy597

Latest Threads

Top