https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63711
Bug ID: 63711 Summary: can not compile llvm in debug mode Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: dushistov at mail dot ru Created attachment 33864 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33864&action=edit failed test In attachment source code extracted from llvm/lib/Analysis/LazyValueInfo.cpp and from couple of headers. It compiles find with g++ -Wall -std=c++11 test.cpp but failed with g++ -Wall -std=c++11 -D_GLIBCXX_DEBUG test.cpp It print /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.1/include/g++-v4/debug/functions.h:220:61: error: invalid initialization of non-const reference of type 'BasicBlock*&' from an rvalue of type 'SuccIterator<TerminatorInst*, BasicBlock>::reference {aka BasicBlock*}' return __foreign_iterator_aux4(__it, std::__addressof(*__other));