diff --git a/libstdc++-v3/include/bits/locale_facets_nonio.tcc b/libstdc++-v3/include/bits/locale_facets_nonio.tcc index 17a2c8d4486e8fe295d72d613dd3979d471afca5..fc35a9e693e7a8127d26e8c3c9125bb535631719 100644 --- a/libstdc++-v3/include/bits/locale_facets_nonio.tcc +++ b/libstdc++-v3/include/bits/locale_facets_nonio.tcc @@ -1474,8 +1474,8 @@ _GLIBCXX_END_NAMESPACE_LDBL_OR_CXX11 // calls. So e.g. if __fmt is "%p %I:%M:%S", we can't handle it // properly, because we first handle the %p am/pm specifier and only // later the 12-hour format specifier. - if ((void*)(this->*(&time_get::do_get)) == (void*)(&time_get::do_get)) - __use_state = true; + if ((void*)(this->*(&time_get::do_get)) == (&time_get::do_get)) + __use_state = true; #pragma GCC diagnostic pop #endif __time_get_state __state = __time_get_state();