GENERATED_BODY() Bug?

For whatever reason if my header files do not have exactly 8 lines between the pragma once define and the start of the class (the UCLASS directive) the code won’t compile and I get the following error on the GENERATED_BODY() line:

this declaration has no storage type or class specifier.