[Bug c++/78773] "Empty" const only class not optimized away

2016-12-12 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78773 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/78773] "Empty" const only class not optimized away

2016-12-12 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78773 --- Comment #3 from Andrew Pinski --- Actually constexpr won't work here as you have a cast from an integer to a pointer ...

[Bug c++/78773] "Empty" const only class not optimized away

2016-12-12 Thread jpakkane at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78773 --- Comment #2 from jpakkane at gmail dot com --- I tried constexpr and it did not have any effect so I just left it out for simplicity. Sorry for the dupe. I tried searching but could not come up with a suitable search term to find it.

[Bug c++/78773] "Empty" const only class not optimized away

2016-12-12 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78773 --- Comment #1 from Andrew Pinski --- Since you already use some c++11 features why don't use constexpr too. Note there is a duplicate of this bug already.