[Bug c++/70212] New: internal compiler error: Segmentation fault when compiling easylogging++.h v9.80
rahulgupta.iisc at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Mar 12 12:13:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70212
Bug ID: 70212
Summary: internal compiler error: Segmentation fault when
compiling easylogging++.h v9.80
Product: gcc
Version: 4.6.4
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: rahulgupta.iisc at gmail dot com
Target Milestone: ---
// Below is the code from where I use easylogging++.h.
// logging library downloaded from below link:
// https://github.com/easylogging/easyloggingpp
#include "easylogging++.h"
INITIALIZE_EASYLOGGINGPP
int main(void) {
LOG(INFO) << "My first ultimate log message";
LOG(INFO) << "This" << "is" << "log" << "without" << "spaces";
el::Loggers::addFlag(el::LoggingFlag::AutoSpacing);
LOG(INFO) << "This" << "is" << "log" << "with" << "spaces";
return 0;
}
####################################
g++ -std=c++0x very-basic.cpp
In file included from very-basic.cpp:9:0:
easylogging++.h: In function ‘el::base::type::EnumType
el::base::utils::bitwise::And(Enum, el::base::type::EnumType) [with Enum =
el::base::FormatFlags, el::base::type::EnumType = short unsigned int]’:
easylogging++.h:935:55: instantiated from ‘bool
el::base::utils::hasFlag(Enum, el::base::type::EnumType) [with Enum =
el::base::FormatFlags, el::base::type::EnumType = short unsigned int]’
easylogging++.h:2228:50: instantiated from here
easylogging++.h:914:89: internal compiler error: Segmentation fault
####################################
g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro
4.6.4-1ubuntu1~12.04' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.6 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object
--enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.6.4 (Ubuntu/Linaro 4.6.4-1ubuntu1~12.04)
More information about the Gcc-bugs
mailing list