Disable -Wliteral-suffix for standard UDLs
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Dec 2017 16:10:25 +0000 (16:10 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 1 Dec 2017 16:10:25 +0000 (16:10 +0000)
commitf03858e51d91334e1645222fa40b1f6bd563fb61
treef6fcb02d54e07764e3f923eba556f17ab5cb63ff
parentf9dcf14aae8f725ed63499d70980eb7029fdd2d5
Disable -Wliteral-suffix for standard UDLs

* include/bits/basic_string.h (operator""s): Add pragmas to disable
-Wliteral-suffix warnings.
* include/experimental/string_view (operator""sv): Likewise.
* include/std/chrono (operator""h, operator""min, operator""s)
(operator""ms, operator""us, operator""ns): Likewise.
* include/std/complex (operator""if, operator""i, operator""il):
Likewise.
* include/std/string_view (operator""sv): Likewise.
* testsuite/20_util/duration/literals/range.cc: Adjust dg-error.

From-SVN: r255320
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_string.h
libstdc++-v3/include/experimental/string_view
libstdc++-v3/include/std/chrono
libstdc++-v3/include/std/complex
libstdc++-v3/include/std/string_view
libstdc++-v3/testsuite/20_util/duration/literals/range.cc