Both the class definition of regex_iterator ([re.regiter]/1) and the latter member specification ([re.regiter.comp]/1+2) declare both comparison operators as non-const functions. Furtheron, both dereference operators are unexpectedly also declared as non-const in [re.regiter]/1 as well as in ([re.regiter.deref]/1+2).