[Bug testsuite/108533] [13 regression] new test g++.dg/init/new51.C in r13-5318-g049a5290907511 fails for 32 bits

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jan 24 23:14:30 GMT 2023


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

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:aba6416e95ab4138a0ecab0fd51e7e9329d74a45

commit r13-5337-gaba6416e95ab4138a0ecab0fd51e7e9329d74a45
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Jan 25 00:12:46 2023 +0100

    testsuite: Fix up new51.C test on various targets [PR108533]

    The test fails on targets where size_t is not unsigned long
    due to extra diagnostics.

    As the testcase is tested in C++98 too, I'm not using decltype (sizeof 0)
    but __SIZE_TYPE__.

    2023-01-25  Jakub Jelinek  <jakub@redhat.com>

            PR c++/107329
            PR testsuite/108533
            * g++.dg/init/new51.C (size_t): New typedef.
            (RexxClass::operator new, RexxClass::operator delete): Use size_t
            instead of unsigned long.


More information about the Gcc-bugs mailing list