Somehow this SrmData conflicts with the one in srm.h. I would have expected the compiler to flag that, but it didn't. Weird.