compile error with debug flag