I've just searched the forum for info about A6 and A7 and came across this thread.
The summary seems to be:
A6 and A7 are 100% analog only pins and they are only available on boards with the surface mount version of the ATmega328.
Don't try to treat them as digital inputs.
Pete