[REG2.066a] Issue 13187 - Function wrongly deduced as pure

https://issues.dlang.org/show_bug.cgi?id=13187