Below is something that did happen to me and I couldn't get what's wrong. My coworker and me screwed our heads around this. It was in a cross-platform library using the cross-platform toolkit wxWidgets on Windows
#include <wx/wx.h>
class Graph {
public:
// ...
// main1.cpp:4:10: error: expected identifier before '(' token
double GetYValue(double x);
};
We were trying hard to find any weird glyph placed instead of an ASCII e
or something, but didn't find any such issue. What was going on!?