http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50365
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-09-12 13:47:18 UTC --- -fpermissive is not a catch-all "behave like previous versions" switch, but in any case, surely the problem here is that the code is valid, it nothing to do with -fpermissive scriptingIndex_ is a member of XplorSimulation, and you're in a member function of that class