public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/24977] New: Dependent lookup considers static functions
@ 2005-11-21 18:17 rsandifo at gcc dot gnu dot org
2005-11-21 18:20 ` [Bug c++/24977] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: rsandifo at gcc dot gnu dot org @ 2005-11-21 18:17 UTC (permalink / raw)
To: gcc-bugs
Sorry in advance if this is a dup.
Dependent lookup considers static candidate functions, which seems
to be in violation of 14.6.4.2. A dejagnu-style testcase:
// { dg-do run }
extern "C" void abort (void);
void f(int) {}
static void f(char) { abort(); }
template<class T> void g(T t) { f(t); }
int main() { g('a'); }
--
Summary: Dependent lookup considers static functions
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rsandifo at gcc dot gnu dot org
GCC build triplet: i686-pc-linux-gnu
GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24977
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/24977] Dependent lookup considers static functions
2005-11-21 18:17 [Bug c++/24977] New: Dependent lookup considers static functions rsandifo at gcc dot gnu dot org
@ 2005-11-21 18:20 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-11-21 18:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-11-21 18:20 -------
This is a dup of bug 19092.
*** This bug has been marked as a duplicate of 19092 ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24977
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-21 18:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-21 18:17 [Bug c++/24977] New: Dependent lookup considers static functions rsandifo at gcc dot gnu dot org
2005-11-21 18:20 ` [Bug c++/24977] " pinskia at gcc dot gnu dot 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).