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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuc...@gcc.gnu.org>:

https://gcc.gnu.org/g:3c13cf479ba81c4d29b202e9b8c6a7f0031a8b20

commit r12-2599-g3c13cf479ba81c4d29b202e9b8c6a7f0031a8b20
Author: Iain Buclaw <ibuc...@gdcproject.org>
Date:   Mon Jul 26 20:01:29 2021 +0200

    d: Generate Object class if it doesn't exist during TypeInfo emission
(PR101672)

    Having a stub will prevent errors from occuring when compiling D code
    with an empty object.d.  Though if it were to actually be used
    implicitly then an error should occur.

            PR d/101672

    gcc/d/ChangeLog:

            * typeinfo.cc (make_frontend_typeinfo): Generate Object class if it
            doesn't exist.
            (check_typeinfo_type): Don't warn if there's no location.

    gcc/testsuite/ChangeLog:

            * gdc.dg/pr100967.d: Update test.
            * gdc.dg/pr101672.d: New test.

Reply via email to