Thanks Steve for the reply. So, are you saying that _result_alt_ret should be a defined variable somehow? Because that doesn't seem sensible to me as this is not a function. Unless the alternate return labels are seen as "returned" variables? Earlier versions of the complier didn't do this so has a new feature been added?
Cheers, Martin On Mon, 2026-11-23 at 11:48 -0800, Steve Kargl wrote: > On 11/23/26 07:05, Martin Tee wrote: > > Consider this alternate return program (yes, I know it's > > obsolescent, > > but gfortran does support it ATM): > > > > code remove to keep this short. > > > > gcc version 17.0.0 20261122 (experimental) (GCC) > > > > 7 | call alt_ret (a, *10, *20) > > | 1 > > Warning: Undefined variable '_result_alt_ret' used at (1) [- > > Wundefined- > > vars] > -fdump-tree-original shows that _result_alt_ret becomes defined. > Add -Wno-undefined-vars to your options.
