ZGELSY uses ILAENV with ZGERQF and ZUNMRQ for workspace computation https://github.com/Reference-LAPACK/lapack/blob/f40d2208b99956aa7913aacb18ac4a39bacae3ad/SRC/zgelsy.f#L266 I think this should be ZTZRZF and ZUNMRZ instead.
ZGELSY uses ILAENV with ZGERQF and ZUNMRQ for workspace computation
lapack/SRC/zgelsy.f
Line 266 in f40d220
I think this should be ZTZRZF and ZUNMRZ instead.