http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59434
--- Comment #1 from cheparukhin at yandex dot ru --- I've found out that this is not a bug in the implementation but an issue in the standard itself: http://cplusplus.github.io/LWG/lwg-active.html#2106