Whether you are licensed to carry a weapon concealed has no relation to whether the weapon itself is legal to carry. If a particular weapon is illegal in your state, a CCW permit isn't going to change that. If you carry an illegal weapon, the only thing keeping you from being arrested is the discretion of the LEO.
1. If you put an Officer in a position to write you up: it's his job, and he is required to do so.
2. If you choose to carry an automatic where you're not legally allowed to do so: accept the consequences of your actions.
3. If you get caught: we ALL get painted with the same broad brush.
Work to change bad laws. Don't just ignore them.
(And yes: I have quite a few automatics in a State that doesn't allow them... discretion is my guide.)