public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/34827]  New: Weird name-lookup error
@ 2008-01-17 14:37 rguenth at gcc dot gnu dot org
  2008-12-30  5:47 ` [Bug c++/34827] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-01-17 14:37 UTC (permalink / raw)
  To: gcc-bugs

template <typename T>
struct Foo
{
    template <typename Z>
    friend void func(const Foo &);
};

void check(const Foo<int> & x)
{
    Foo<int> weird;

    func<int>(x);
}


func is incorrectly found by name-lookup.  If you delete the
declaration of weird the program is rejected as it should.

Maybe we are confused by applying argument dependent name-lookup
here?


-- 
           Summary: Weird name-lookup error
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34827


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

end of thread, other threads:[~2008-12-30 11:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-17 14:37 [Bug c++/34827] New: Weird name-lookup error rguenth at gcc dot gnu dot org
2008-12-30  5:47 ` [Bug c++/34827] " pinskia at gcc dot gnu dot org
2008-12-30 10:23 ` rguenth at gcc dot gnu dot org
2008-12-30 10:43 ` rguenth at gcc dot gnu dot org
2008-12-30 11:43 ` dragan at plusplus dot co dot yu
2008-12-30 11:47 ` rguenth at gcc dot gnu dot org
2008-12-30 11:48 ` rguenther at suse dot de

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).