might depend on the state but for sure illegal in most. At the same time, I've never heard of it being litigated, ever. Usually the people told not to talk about their salaries are making the most.
"Usually the people told not to talk about their salaries are making the most."