[LLVMdev] Cant compile for (auto & fe: SeenFileEntries) with gcc48
Tim Northover
t.p.northover at gmail.com
Tue Jun 10 04:27:34 PDT 2014
Hi Armin,
On 10 June 2014 12:15, Armin Steinhoff <as at steinhoff-automation.com> wrote:
> FileManager.cpp:311:10: warning: ‘auto’ changes meaning in C++11; please
> remove it [-Wc++0x-compat]
> for (auto & fe: SeenFileEntries) {
> ^
That message looks like one I'd expect if GCC was trying to compile
the file in C++98 mode (warning about the ancient use of "auto" as the
default for local variables). You could check that with a "make
VERBOSE=1" (at least for CMake), I expect there won't be a
"-std=c++11" option.
C++11 is needed these days (for anything after 3.4 theoretically, I
believe), but the build system should have added the appropriate
options to do this. I'd try a clean build.
Cheers.
Tim.
More information about the llvm-dev
mailing list