Missing semicolons will cause various errors. You are missing a couple, and the error message(s) will at least point to where you need to look.
Since I'm here, may as well comment on your use of the port-
PORTA.OUTSET|= PIN6_bm;
PORTA.OUTCLR|= PIN6_bm;
Any use of set/clr/tgl for the port peripheral should only be assignment (=). The purpose of the set/clr/tgl registers is to make any pin manipulation atomic, and you lose that by using anything other than = (whether it matters or not may vary). In the case of the OUTCLR usage above, by using |= you are also clearing any other OUT bits on the same port that happen to be currently set. In the case of OUTSET usage above, it may at first appear it would be harmless since it would be setting the port OUT bits that are already set (in addition to the intended bit), but by using |= you have lost atomicity and may end up setting a (now) cleared bit if an interrupt occurred in the process.