Fix Trac #2114: error reporting for 'forall' without appropriate flags