Fix parsing of unsyntactic declaration

bug21547: Optimize declaration allowed an unsyntactic form to go
without complaint.

Change-Id: I9135d03594233362e8e08e0ad35ecf9e33aa6c45