http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53573
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-06-05 11:03:26 UTC --- (In reply to comment #6) > The suggested work around in the error message 'adding -fpermissive' to > gcc-4.7.0 does not fix the problem as suggested by the error message. As Manu says, -fpermissive changes the error to a warning, allowing the code to compile. Please check it again. I'm going to close this, as I think G++ handles comment 1 correctly and both EDG and Clang agree. I didn't check all your other examples in detail but I don't think they show anything different: ADL doesn't find anything for built-in types such as int or char.