Check that when an error message for a enum or struct data type is generated it points to the location of the declaration of the type. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>