mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-26 10:50:51 +08:00
The following patch uses make_signed_t<size_t> instead of make_signed<size_t>::type in the diagnostics, because the former is shorter. It is true that one can't use make_signed<size_t>::type in C++11 code (which is why I haven't changed it in the testcase which is c++11 effective target), but the message talks about C++23 and make_signed_t is a C++14 and later feature, so I think it is fine. 2021-02-04 Jakub Jelinek <jakub@redhat.com> * expr.c (cpp_classify_number): Use make_signed_t<size_t> instead of make_signed<size_t>::type in the diagnostics. * g++.dg/warn/Wsize_t-literals.C: Expect make_signed_t<size_t> instead of make_signed<size_t>::type in the diagnostics.