https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126910
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jeff Law <[email protected]>: https://gcc.gnu.org/g:eb4f94292a2c0ac77624aaed0a176af872246130 commit r17-6607-geb4f94292a2c0ac77624aaed0a176af872246130 Author: Oleg Tolmatcev <[email protected]> Date: Mon Nov 23 11:18:37 2026 -0700 [PATCH] codeview: Handle enumerations without enumerators [PR126910] get_type_num_enumeration_type crashed on the empty field list of an enumeration without enumerators. Check for it. PR debug/126910 gcc/ChangeLog: * dwarf2codeview.cc (get_type_num_enumeration_type): Check for an empty field list. gcc/testsuite/ChangeLog: * g++.dg/debug/codeview/pr126910.C: New test. Signed-off-by: Oleg Tolmatcev <[email protected]>
