I hit the same bug on an audit question (this question: Why do I need to #include <typeinfo> when using the typeid operator?)
Well the current error is completely nonsensical (thus I believe bug -- that is WHATEVER the intended behavior, the current behavior is wrong due to a bad error message), but what to do is open to speculation. Personally I feel you might as well give up at this point and reveal it's an audit question. Anybody who hits this once will know the second time anyway.