[cfe-dev] LangOptions::MSCVersion not initialized

Csaba Raduly rcsaba at gmail.com
Sun Dec 19 13:30:46 PST 2010


When compiling r122194 with GCC 4.3.4 on Cygwin 1.7, I get the
following warning:

/home/Gamer/LLVM/llvm/tools/clang/lib/AST/../../include/clang/Basic/LangOptions.h:
In function ‘const clang::DiagnosticBuilder& clang::operator<<(const
clang::DiagnosticBuilder&, const clang::TemplateArgument&)’:
/home/Gamer/LLVM/llvm/tools/clang/lib/AST/../../include/clang/Basic/LangOptions.h:24:
warning: ‘LangOpts.clang::LangOptions::MSCVersion’ may be used
uninitialized in this function
/home/Gamer/LLVM/llvm/tools/clang/lib/AST/TemplateBase.cpp:230: note:
‘LangOpts.clang::LangOptions::MSCVersion’ was declared here

As far as I can see, MSCVersion is not set in the constructor.

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds




More information about the cfe-dev mailing list