public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29165] New: dependent name resolution finds static functions
@ 2006-09-21 13:07 andrew dot stubbs at st dot com
2006-09-21 14:37 ` [Bug c++/29165] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: andrew dot stubbs at st dot com @ 2006-09-21 13:07 UTC (permalink / raw)
To: gcc-bugs
Under the current standard, the following program should not compile:
static void f(int) {}
template <class T> void t(T t) { f(t); }
void g() { t(1); }
EDG 3.0 rejects it.
The C++ standard clause 14.6.4.2 states that function calls depending on
template parameters may only consider function declarations with external
linkage.
I have no doubt this is a bug, but I'm not sure whether anybody should bother
fixing it or not, because issue 561 may change this situation:
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#561
--
Summary: dependent name resolution finds static functions
Product: gcc
Version: 4.1.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: andrew dot stubbs at st dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29165
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-21 14:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-21 13:07 [Bug c++/29165] New: dependent name resolution finds static functions andrew dot stubbs at st dot com
2006-09-21 14:37 ` [Bug c++/29165] " 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).