[Bug c++/114954] [modules] ICE in write_class_def with templated union type
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 7 01:39:26 GMT 2024
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 <nshead@gcc.gnu.org>:
https://gcc.gnu.org/g:0c43c673b0d431ca02d83bf6fae9cd60e9a3d0a8
commit r15-221-g0c43c673b0d431ca02d83bf6fae9cd60e9a3d0a8
Author: Nathaniel Shead <nathanieloshead@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 <nathanieloshead@gmail.com>
Reviewed-by: Jason Merrill <jason@redhat.com>
More information about the Gcc-bugs
mailing list