Fix crash of -fdump-ada-spec in a pathological case
commitcf420e7b98d845323fad8280aea4ede60d3d96fe
authorEric Botcazou <ebotcazou@adacore.com>
Tue, 16 Jan 2024 11:15:31 +0000 (16 12:15 +0100)
committerEric Botcazou <ebotcazou@adacore.com>
Tue, 16 Jan 2024 11:17:32 +0000 (16 12:17 +0100)
tree93ab3225a8ff3e250bc5c7fa4bc7a7f657c8e407
parent1251d3957de04dc9b023a23c09400217e13deadb
Fix crash of -fdump-ada-spec in a pathological case

gcc/c-family/
PR ada/113397
* c-ada-spec.cc (check_type_name_conflict): Add guard for the
presence of DECL_NAME on a TYPE_DECL.
gcc/c-family/c-ada-spec.cc