Hi, This fixes PR c++/124983 by postponing access checks for dependent declarations until substitution, avoiding the ICE during typo correction.
Tested on x86_64-pc-linux-gnu with no unexpected failures. Thanks, Odysseas
PR124983.patch
Description: PR124983.patch
