[Bug lto/71018] lto + ipa-pta causes exception with trivial boost::ptime code.

2016-05-09 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71018

Richard Biener  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |DUPLICATE

--- Comment #5 from Richard Biener  ---
The patch for PR70785 fixed this, thus fixed for GCC 6.2.

*** This bug has been marked as a duplicate of bug 70785 ***

[Bug lto/71018] lto + ipa-pta causes exception with trivial boost::ptime code.

2016-05-09 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71018

--- Comment #4 from Richard Biener  ---
Possibly related to PR70760 or PR70785.  Can't reproduce with GCC 6 branch head
(so I'd say 70785), building GCC 6.1.0 right now.

[Bug lto/71018] lto + ipa-pta causes exception with trivial boost::ptime code.

2016-05-09 Thread riad93 at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71018

riad93 at mail dot ru changed:

   What|Removed |Added

  Attachment #38449|0   |1
is obsolete||

--- Comment #3 from riad93 at mail dot ru ---
Created attachment 38450
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38450&action=edit
preprocessed code

Fixed preprocessed code

[Bug lto/71018] lto + ipa-pta causes exception with trivial boost::ptime code.

2016-05-09 Thread riad93 at mail dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71018

--- Comment #2 from riad93 at mail dot ru ---
Created attachment 38449
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38449&action=edit
preprocessed code

It's in tar.gz since it's too big for upload here as plaintext

[Bug lto/71018] lto + ipa-pta causes exception with trivial boost::ptime code.

2016-05-09 Thread riad93 at mail dot ru
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
>'
  what():  Year is out of valid range: 1400..1
[1]10332 abort  ./flto_test