[Bug c++/82000] Missed optimization of char_traits::length() on constant string

2021-07-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82000 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/82000] Missed optimization of char_traits::length() on constant string

2017-08-28 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82000 --- Comment #3 from Marc Glisse --- (In reply to Louis Dionne from comment #2) > > Downloading the one from godbolt, we simplify it to: [...] > > I have no idea what this is and how you feed that to GCC, but I'm curious. That's what

[Bug c++/82000] Missed optimization of char_traits::length() on constant string

2017-08-28 Thread ldionne.2 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82000 --- Comment #2 from Louis Dionne --- > The example you wrote in the bug report makes no sense: missing includes, and > with the includes added it optimizes to return 0. Sorry, I did not mean the example I pasted here to be a complete

[Bug c++/82000] Missed optimization of char_traits::length() on constant string

2017-08-27 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82000 Marc Glisse changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|