LGTM! Thanks for the Patch.
- Andre Andre Vehreschild * ve...@gmx.de Am 15. Mai 2025 22:36:19 schrieb Harald Anlauf <anl...@gmx.de>:
Dear all, the attached patch fixes missing default-initialization of function results of derived type that happens under some conditions, see PR. The logic when default initialization is to be applied is rather contorted, and reversing the order of two cases fixed the issue. Regtesting revealed a few bogus warnings in the testsuite, and some counts of tree-dump scans needed adjustment. Regtested on x86_64-pc-linux-gnu. OK for mainline? The PR marks the issue as a regression since gcc-6, which I cannot test. I therefore feel that this fix should be backported to 15-branch. Going back further would need backporting of other patches (e.g. to pr98454), so if someone pushes me, I can try. Let me know what you think. Cheers, Harald