We were not checking that attributes that are supposed to be specific to
dummy arguments were not being used for local entities. I added the checks
along with tests for them.
After implementing these new checks, I found that one of the tests in
separate-mp02.f90 was erroneous, and I fixed it.
There are already checks for the VALUE attribute, but the message is worded differently. It would be better if they were consistent.
t.f90:2:21: error: VALUE attribute may apply only to a dummy argument integer, value :: x ^ t.f90:3:24: error: OPTIONAL attribute can only be used for dummy arguments integer, optional :: y ^