GCC-style output for reference errors