Thanks for the replies.
I will use the comment idea. In this particular case I had been programming a Nano and then opened a Mega sketch and I was informed that A11 was undefined in this scope
. It took a little head scratching to figure out what was wrong.