http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50096
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-08-16 10:29:30 UTC --- Are you sure you haven't edited Stmt.cpp to remove 'const' from the definition of the getSourceRange_t typedef? That would also explain the error.