https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36159
Martin Sebor <msebor at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-10-10
Ever confirmed|0 |1
--- Comment #12 from Martin Sebor <msebor at gcc dot gnu.org> ---
Confirmed. As noted in bug 67911, the solution proposed for the next version
of C++ is the following:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/p0035r0.html
Until it's accepted and implemented, issuing a warning would help users avoid
the trap. I happen to be working in this area so I'll see if I can come up
with something.