Reentrant behaviour of a solution undergoing inverse melting