If there was a problem, it would be an error message telling you that the requested database does not exist. There is no reason that this should cause a crash. There is also no reason that this wouldn’t work the same way every time (depending, of course, on what the value of A is).
Panorama 6 gives a syntax error when the construct A + “B” is not within ( ) as in (A + “B”) and the documentation states that this is required.
Panorama X allows it without the ( ).
Panorama X was crashing more frequently when I stumbled on this but that may have been for other reasons as I was trying to migrate 42 years of data and procedures from Panorama 6 to Panorama X.