<div dir="rtl"><div dir="ltr">Hi,</div><div dir="ltr"><br></div><div dir="ltr">Trying to compile libcxx using ToT clang results in several warnings such as:</div><div dir="ltr"><br></div><div dir="ltr"><div dir="ltr"><font face="courier new, monospace">libcxx/string:4169:24: warning: user-defined literal suffixes not starting with '_' are reserved</font></div>

<div dir="ltr"><font face="courier new, monospace">    basic_string<char> operator "" s( const char *__str, size_t __len )</font></div><div dir="ltr"><font face="courier new, monospace"><div dir="ltr"><br>

</div><div dir="ltr">libcxx/chrono:955:29: warning: user-defined literal suffixes not starting with '_' are reserved</div><div dir="ltr">    constexpr chrono::hours operator"" h(unsigned long long __h)</div>

</font></div><div dir="ltr"><font face="courier new, monospace">                       ^</font></div><div>debugging, I see Sema::CheckLiteralOperatorDeclaration calling NumericLiteralParser::isValidUDSuffix which returns true (valid) for the "s" and "h" suffixes.  This prevents the second optional part of the warning, "no literal will invoke this operator" but not the first one shown above.</div>

<div><br></div><div>Yaron</div><div><br></div></div></div>