-cd
Ebola_Influenza wrote:
> don't know if it's been fixed for VS .NET 2005, but here 'tis in 2003
>
> d:\program files\microsoft visual studio .net
> 2003\vc7\include\xtree(1116) : warning C4702: unreachable code
> d:\program files\microsoft visual studio .net
> 2003\vc7\include\xtree(1117) : warning C4702: unreachable code
> d:\program files\microsoft visual studio .net
> 2003\vc7\include\xtree(1118) : warning C4702: unreachable code
> d:\program files\microsoft visual studio .net
> 2003\vc7\include\xtree(1119) : warning C4702: unreachable code
> d:\program files\microsoft visual studio .net
> 2003\vc7\include\xtree(1121) : warning C4702: unreachable code
main.cpp:
#include <map>
int main( int /* argc */, char** /* argv */ ) {
std::map<int, std::map<int, int> > _map;
return 0;
}
command-line args are ALL default with one exception: warning level 4, then build Release
thanks for getting back so soon!
compiler = /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FD /EHsc /ML /GS /Fo"Release/" /Fd"Release/vc70.pdb" /W4 /nologo /c /Wp64 /Zi /TP
linker = /OUT:"Release/xtree_test.exe" /INCREMENTAL:NO /NOLOGO /DEBUG /PDB:"Release/xtree_test.pdb" /SUBSYSTEM:CONSOLE /OPT:REF /OPT:ICF /MACHINE:X86 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
hope that helps...
"Carl Daniel [VC++ MVP]" wrote:
This is a known problem with the 2003 version. The lines below refer to
a try/catch clause, where the compiler realizes that for the data types
in use, there will never be any exceptions thrown. The catch clause is
thus unreachable.
You will have to disable this warning.
A quick test with the 2005 version indicates that it might have been
fixed there.
Bo Persson