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

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathaniel Shead <nsh...@gcc.gnu.org>:

https://gcc.gnu.org/g:0c43c673b0d431ca02d83bf6fae9cd60e9a3d0a8

commit r15-221-g0c43c673b0d431ca02d83bf6fae9cd60e9a3d0a8
Author: Nathaniel Shead <nathanielosh...@gmail.com>
Date:   Mon May 6 13:05:52 2024 +1000

    c++: Allow IS_FAKE_BASE_TYPE for union types [PR114954]

    In some circumstances, unions can also have an __as_base type; we need
    to make sure that IS_FAKE_BASE_TYPE correctly recognises this.

            PR c++/114954

    gcc/cp/ChangeLog:

            * cp-tree.h (IS_FAKE_BASE_TYPE): Also apply to unions.

    gcc/testsuite/ChangeLog:

            * g++.dg/modules/pr114954.C: New test.

    Signed-off-by: Nathaniel Shead <nathanielosh...@gmail.com>
    Reviewed-by: Jason Merrill <ja...@redhat.com>

Reply via email to