https://llvm.org/bugs/show_bug.cgi?id=30438
Bug ID: 30438 Summary: lld build failure with GCC Product: new-bugs Version: trunk Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P Component: new bugs Assignee: unassignedb...@nondot.org Reporter: will...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified ~~/llvm/tools/lld/ELF/LinkerScript.cpp: In member function 'void lld::elf::LinkerScript<ELFT>::assignOffsets(lld::elf::OutputSectionCommand*)': ~~/llvm/tools/lld/ELF/LinkerScript.cpp:450:8: error: inconsistent deduction for 'auto': 'auto' and then '__gnu_cxx::__normal_iterator<std::unique_ptr<lld::elf::BaseCommand>*, std::vector<std::unique_ptr<lld::elf::BaseCommand> > >' for (auto I = E, E = Cmd->Commands.end(); I != E; ++I) ^~~~ When building lld with GCC 6.2.0. Relevant line: https://github.com/llvm-mirror/lld/blob/master/ELF/LinkerScript.cpp#L450 While I'm curious as to why exactly GCC is unhappy here (and whether it's "right" to reject it), it seems worth fixing anyway :). -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs