I
ideas2050
[SUMMARY]
Observed a compilation error reporting differences between VC++ 6.0 and
7.0 VS .NET 2003.
Seeking opinions.
[IN DETAILS]
Here is the code abbreviated:-
main()
{
// xxxxxxxxx other code xxxxxxxxxxxxxxx
if(<<something==1>>)
{
goto Label_1;
//xxxxx other code xxx
}
<<pointer variable declaration + definition here>>;
Label_1:
//xxxxxxxxxxxxother code xxxxxxxxxxxxxxxx
}
When I compiled this in 6.0, it gave me error saying that goto is
skipping the pointer variable's definition. But 7.0 did not give such a
error.
Both places, settings were error level 3, which did NOT mean treating
warnings as errors.
Any ideas, how this difference?
Thanks.
- Kedar Agarkar
Observed a compilation error reporting differences between VC++ 6.0 and
7.0 VS .NET 2003.
Seeking opinions.
[IN DETAILS]
Here is the code abbreviated:-
main()
{
// xxxxxxxxx other code xxxxxxxxxxxxxxx
if(<<something==1>>)
{
goto Label_1;
//xxxxx other code xxx
}
<<pointer variable declaration + definition here>>;
Label_1:
//xxxxxxxxxxxxother code xxxxxxxxxxxxxxxx
}
When I compiled this in 6.0, it gave me error saying that goto is
skipping the pointer variable's definition. But 7.0 did not give such a
error.
Both places, settings were error level 3, which did NOT mean treating
warnings as errors.
Any ideas, how this difference?
Thanks.
- Kedar Agarkar