]> git.ipfire.org Git - thirdparty/gcc.git/commit
d: Only handle named enums in enum_initializer_decl
authorIain Buclaw <ibuclaw@gdcproject.org>
Mon, 26 Jul 2021 17:10:47 +0000 (19:10 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Fri, 30 Jul 2021 10:51:36 +0000 (12:51 +0200)
commit370f66b6af3e70ac31593d60a00d328a3368834a
tree299c2b20996e928ac4ea7974c38c109ecdc02360
parente22b7ae15b09aef1ec05dec6e24580d0063e9ab1
d: Only handle named enums in enum_initializer_decl

Anonymous enums neither generate an initializer nor typeinfo symbol, so
it's safe to assert that all enum declarations passed to this function
always have an identifier.

gcc/d/ChangeLog:

* decl.cc (enum_initializer_decl): Only handle named enums.
gcc/d/decl.cc