Additional checking for invalid decls referred to by typedef