http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50308
Bug #: 50308 Summary: __attribute__((deprecated)) incorrectly generates warning in ADL lookup Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: gd_bugzi...@growndodo.com void A( int ) __attribute__((deprecated)); namespace B { struct C {}; void A( C ) {} } int main (int argc, const char * argv[]) { B::C x; // ADL correctly identifies the non-deprecated B::A, but a warning about the global A is generated anyway A( x ); return 0; }