/GX compiler option

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Param

    /GX compiler option

    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


  • Michiel Salters

    #2
    Re: /GX compiler option

    "Param" <secparam@yahoo .com> wrote in message news:<bgd39v$1o s$1@news.mch.sb s.de>...[color=blue]
    > Hi ,
    > I have faced a strange problem. I have a code something like this...
    > while(!a)[/color]
    ....[color=blue]
    >
    > 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.[/color]

    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,
    --
    Michiel Salters

    Comment

    Working...