[Bug libstdc++/63345] Multiple undefined behaviors (static_cast<>) in libstdc++-v3/include/bits

2018-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63345 Jonathan Wakely changed: What|Removed |Added Status|NEW |RESOLVED See Also|

[Bug libstdc++/63345] Multiple undefined behaviors (static_cast<>) in libstdc++-v3/include/bits

2018-11-19 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63345 Martin Liška changed: What|Removed |Added CC||marxin at gcc dot gnu.org --- Comment

[Bug libstdc++/63345] Multiple undefined behaviors (static_cast<>) in libstdc++-v3/include/bits

2016-04-06 Thread malcolm.parsons at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63345 --- Comment #11 from Malcolm Parsons --- (In reply to Jonathan Wakely from comment #10) > > The attached patch fixes it for me. > > That seems to be a backport of r223746 from trunk, right? I'll look into > applying that to the gcc-5 branch.

[Bug libstdc++/63345] Multiple undefined behaviors (static_cast<>) in libstdc++-v3/include/bits

2016-04-06 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63345 --- Comment #10 from Jonathan Wakely --- (In reply to Malcolm Parsons from comment #9) > Created attachment 38201 [details] > fix undefined behaviour in stl_tree.h > > (In reply to Jonathan Wakely from comment #8) > > I believe all the real

[Bug libstdc++/63345] Multiple undefined behaviors (static_cast<>) in libstdc++-v3/include/bits

2016-04-06 Thread malcolm.parsons at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63345 Malcolm Parsons changed: What|Removed |Added CC||malcolm.parsons at gmail dot com ---

[Bug libstdc++/63345] Multiple undefined behaviors (static_cast) in libstdc++-v3/include/bits

2015-07-13 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63345 --- Comment #8 from Jonathan Wakely redi at gcc dot gnu.org --- I believe all the real problems are fixed now.

[Bug libstdc++/63345] Multiple undefined behaviors (static_cast) in libstdc++-v3/include/bits

2015-05-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63345 --- Comment #7 from Jonathan Wakely redi at gcc dot gnu.org --- Why does your patch need to touch operator* or operator- for any of the iterators? For any dereferenceable iterator the cast should be valid, so if you're seeing invalid casts it

[Bug libstdc++/63345] Multiple undefined behaviors (static_cast) in libstdc++-v3/include/bits

2014-10-13 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63345 --- Comment #6 from Marc Glisse glisse at gcc dot gnu.org --- Author: glisse Date: Mon Oct 13 10:00:27 2014 New Revision: 216142 URL: https://gcc.gnu.org/viewcvs?rev=216142root=gccview=rev Log: 2014-10-13 Marc Glisse marc.gli...@inria.fr

[Bug libstdc++/63345] Multiple undefined behaviors (static_cast) in libstdc++-v3/include/bits

2014-09-23 Thread blee at gatech dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63345 --- Comment #1 from Byoungyoung Lee blee at gatech dot edu --- Created attachment 33541 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33541action=edit Error reports in running Chromium browsers.

[Bug libstdc++/63345] Multiple undefined behaviors (static_cast) in libstdc++-v3/include/bits

2014-09-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63345 Jonathan Wakely redi at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

[Bug libstdc++/63345] Multiple undefined behaviors (static_cast) in libstdc++-v3/include/bits

2014-09-23 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63345 --- Comment #3 from Marc Glisse glisse at gcc dot gnu.org --- Hello, thanks for the report. I don't think we should blindly replace static_cast with reinterpret_cast but rather try and understand what is going on. For instance, for std::list, I

[Bug libstdc++/63345] Multiple undefined behaviors (static_cast) in libstdc++-v3/include/bits

2014-09-23 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63345 --- Comment #4 from Jonathan Wakely redi at gcc dot gnu.org --- (In reply to Marc Glisse from comment #3) thanks for the report. I don't think we should blindly replace static_cast with reinterpret_cast but rather try and understand what is

[Bug libstdc++/63345] Multiple undefined behaviors (static_cast) in libstdc++-v3/include/bits

2014-09-23 Thread blee at gatech dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63345 --- Comment #5 from Byoungyoung Lee blee at gatech dot edu --- Thank you for the quick response! The patch I've uploaded is simply the results by replacing all static_cast in the error reports with reinterpret_cast, so that the tool stops