OK, this isn\'t the original program I had this problem in, but I duplicated it in a much smaller one. Very simple problem.
main.cpp:
#include
Regex support improved between gcc 4.8.2 and 4.9.2. For example, the regex =[A-Z]{3} was failing for me with:
=[A-Z]{3}
Regex error
After upgrading to gcc 4.9.2, it works as expected.