If `storage_class  == STCshared`, `mod` will become undefined value. Then reported error message will be undeterministic.