[Bug c++/50308] New: __attribute__((deprecated)) incorrectly generates warning in ADL lookup
gd_bugzilla at growndodo dot com
gcc-bugzilla@gcc.gnu.org
Tue Sep 6 18:05:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: gd_bugzilla@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;
}
More information about the Gcc-bugs
mailing list