According to http://www.netlib.org/scalapack/html/src/pdlahqr.f when LWORK is set to -1 and passed into PDLAQHR() the function is supposed to return MAX( 2*MAX(DESCZ(LLD_),DESCA(LLD_)) + 2*LOCq(N), 7*Ceil(N/HBL)/LCM(NPROW,NPCOL)) + MAX( 2*N, (8*LCM(NPROW,NPCOL)+2)**2 ) via the WORK variable. However, current implementations just error with a message indicating that argument 15 has an invalid value.
The documentation should be updated to indicate that querying PDLAHQR() is no longer allowed or (preferrably) the definition of PDLAHQR() should be updated to allow querying again.

