https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78773
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
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 ...
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.
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.