Federal law bars gun sales to the mentally ill only if they've ever been deemed by a judge to be mentally incompetent or involuntarily committed. States reporting of such things to the federal database is spotty, and very often, it doesn't show up when a gun seller does a background check.
{}