NB CA-17 Implicit lambda capture and anonymous unions

Also fixes CWG1612.