commit | 7318f1a389769ab540f414fcba743e90051d466b | [log] [tgz] |
---|---|---|
author | Nathaniel Shead <nathanieloshead@gmail.com> | Sat Apr 20 14:44:11 2024 +1000 |
committer | Nathaniel Shead <nathanieloshead@gmail.com> | Wed Apr 24 09:24:17 2024 +1000 |
tree | 8951496428cf42bcc5a29d85299e6b377444f865 | |
parent | 628c2221d38715a64f828e3635317293d150e001 [diff] |
c++: Fix ICE with xobj parms and maybe incomplete decl-specifiers This fixes a null dereference issue when decl_specifiers.type is not yet provided. gcc/cp/ChangeLog: * parser.cc (cp_parser_parameter_declaration): Check if decl_specifiers.type is null. gcc/testsuite/ChangeLog: * g++.dg/cpp23/explicit-obj-basic7.C: New test. Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>