public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50308] New: __attribute__((deprecated)) incorrectly generates warning in ADL lookup
@ 2011-09-06 18:05 gd_bugzilla at growndodo dot com
  2012-02-01  3:14 ` [Bug c++/50308] " pinskia at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gd_bugzilla at growndodo dot com @ 2011-09-06 18:05 UTC (permalink / raw)
  To: gcc-bugs

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;
}


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-02-02 11:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-06 18:05 [Bug c++/50308] New: __attribute__((deprecated)) incorrectly generates warning in ADL lookup gd_bugzilla at growndodo dot com
2012-02-01  3:14 ` [Bug c++/50308] " pinskia at gcc dot gnu.org
2012-02-01  3:15 ` pinskia at gcc dot gnu.org
2012-02-01 17:57 ` iains at gcc dot gnu.org
2012-02-02 10:55 ` iains at gcc dot gnu.org
2012-02-02 11:00 ` iains at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).