Describe the bug
If choice with default value is under menu that is conditionally visible, default value is set only if menu is visible. This doesn't seem to affect config under same menu.
To Reproduce
menu SOME_MENU
visible if FOO
config BAR
bool "bar"
default y
choice BAZ_CHOICE
"choose baz"
default BAZ1
config BAZ1
bool "baz1"
config BAZ2
bool "baz2"
endchoice
endmenu
If FOO is not set, BAR=y , BAZ1 is unset
If FOO is set, BAR=y and BAZ1=y
Expected behavior
In example above BAZ1 should be set regardless of FOO value.
Impact
Blocks PR #39736