public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/36883] New: Overeager ADL again
@ 2008-07-20 19:36 dave at boost-consulting dot com
2008-08-17 0:18 ` [Bug c++/36883] " pinskia at gcc dot gnu dot org
2009-03-03 20:58 ` jason at gcc dot gnu dot org
0 siblings, 2 replies; 4+ messages in thread
From: dave at boost-consulting dot com @ 2008-07-20 19:36 UTC (permalink / raw)
To: gcc-bugs
If I understand correctly, the following should not compile, because normal
lookup is supposed to look backwards from the calling template's
point-of-definition. There's nothing to make foo an associated namespace of
boo::X.
namespace boo
{
struct X {};
}
namespace foo
{
template <class T>
void bar( T x )
{
baz(x); // <== should fail here
}
void baz(boo::X) {}
}
int main()
{
foo::bar( boo::X() );
}
--
Summary: Overeager ADL again
Product: gcc
Version: 4.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dave at boost-consulting dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36883
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/36883] Overeager ADL again
2008-07-20 19:36 [Bug c++/36883] New: Overeager ADL again dave at boost-consulting dot com
@ 2008-08-17 0:18 ` pinskia at gcc dot gnu dot org
2009-03-03 20:58 ` jason at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-08-17 0:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-08-17 00:16 -------
I think the issue is we don't disquish between an empty overloaded set and one
that needs to be looked up later.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36883
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/36883] Overeager ADL again
2008-07-20 19:36 [Bug c++/36883] New: Overeager ADL again dave at boost-consulting dot com
2008-08-17 0:18 ` [Bug c++/36883] " pinskia at gcc dot gnu dot org
@ 2009-03-03 20:58 ` jason at gcc dot gnu dot org
1 sibling, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-03-03 20:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jason at gcc dot gnu dot org 2009-03-03 20:58 -------
I agree this is a bug: [temp.dep.candidate] says
For the part of the lookup using unqualified name lookup (3.4.1), only function
declarations with external linkage from the template definition context are
found.
EDG also gets this wrong currently.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |accepts-invalid
Last reconfirmed|0000-00-00 00:00:00 |2009-03-03 20:58:20
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36883
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/36883] Overeager ADL again
[not found] <bug-36883-4@http.gcc.gnu.org/bugzilla/>
@ 2011-05-20 16:21 ` jason at gcc dot gnu.org
0 siblings, 0 replies; 4+ messages in thread
From: jason at gcc dot gnu.org @ 2011-05-20 16:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36883
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-20 15:56:21 UTC ---
This is another instance of 29131.
*** This bug has been marked as a duplicate of bug 29131 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-05-20 16:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-20 19:36 [Bug c++/36883] New: Overeager ADL again dave at boost-consulting dot com
2008-08-17 0:18 ` [Bug c++/36883] " pinskia at gcc dot gnu dot org
2009-03-03 20:58 ` jason at gcc dot gnu dot org
[not found] <bug-36883-4@http.gcc.gnu.org/bugzilla/>
2011-05-20 16:21 ` jason 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).