[Bug c++/65923] False positive for warning about literal operator suffix and using

richardg.work at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Mar 31 18:55:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65923

Richard Geary <richardg.work at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |richardg.work at gmail dot com

--- Comment #2 from Richard Geary <richardg.work at gmail dot com> ---
This is still present in g++ 5.3.0, and also affects
std::literals::string_literals. The flag -Wno-literal-suffix does not turn it
off.  Thus -Werror builds will fail, despite the C++ being clean.

A workaround is to use 'using namespace std::literals::chrono_literals;' but
having a 'using namespace' in a header file is usually considered bad practice.

Please can someone fix this?


More information about the Gcc-bugs mailing list