[Bug lto/71018] lto + ipa-pta causes exception with trivial boost::ptime code.
riad93 at mail dot ru
gcc-bugzilla@gcc.gnu.org
Mon May 9 10:48:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71018
--- Comment #1 from riad93 at mail dot ru ---
Accidentaly sent before adding info
-v:
Using built-in specs.
COLLECT_GCC=/opt/gcc-6/bin/c++-6.1
COLLECT_LTO_WRAPPER=/opt/gcc-6/libexec/gcc/x86_64-pc-linux-gnu/6.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../configure --enable-languages=c,c++ --enable-shared
--enable-threads=posix --program-suffix=-6.1 --with-system-zlib
--prefix=/opt/gcc-6/ --disable-multilib --disable-bootstrap
Thread model: posix
gcc version 6.1.0 (GCC)
Command line:
/opt/gcc-6/bin/c++-6.1 -O2 -fipa-pta -flto=24 flto_test.cpp -o flto_test
-Wl,-rpath,/opt/gcc-6/lib64 -Wall -Wextra -fno-strict-aliasing -fwrapv
-fsanitize=undefined && ./flto_test
Output:
flto_test.cpp: In function ‘time_type {anonymous}::utc_to_local(const
time_type&)’:
flto_test.cpp:18:22: warning: variable ‘dd’ set but not used
[-Wunused-but-set-variable]
date_duration_type dd = t.date() - time_t_start_day;
^~
terminate called after throwing an instance of
'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::gregorian::bad_year>
>'
what(): Year is out of valid range: 1400..10000
[1] 10332 abort ./flto_test
More information about the Gcc-bugs
mailing list