disabled invariant-checking in GCC 4.0 20041026 (Apple build 4061) due to a compiler bug affecting scope guards