public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/15814] New: functions with namespace qualifiers in templated functions which are dependent on the templated type search for the function at parse time instead of instantiation time
@ 2004-06-03 22:27 rdelashmit at soe dot sony dot com
2004-06-03 22:29 ` [Bug c++/15814] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: rdelashmit at soe dot sony dot com @ 2004-06-03 22:27 UTC (permalink / raw)
To: gcc-bugs
This occurs with 3.4.0 and 3.5.0(cvs as of 6/3/2004), but not with 2.95.3,
3.2.3, or 3.3.3. Code to reproduce is below. As I understand it, Foo::baz
(value) in the code below should find the function at instantiation time,
because it is dependant on the template parameter ValueType, but errors out at
parse time instead. If baz(value) rather than Foo::baz(value) is used, this
appears to work correctly.
namespace Foo
{
template <class ValueType>
void bar(ValueType value)
{
#if 1
Foo::baz(value); // this version does not compile
#else
baz(value); // this version compiles
#endif
}
void baz(int) {}
}
void test()
{
Foo::bar<int>(0);
}
--
Summary: functions with namespace qualifiers in templated
functions which are dependent on the templated type
search for the function at parse time instead of
instantiation time
Product: gcc
Version: 3.5.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rdelashmit at soe dot sony dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15814
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/15814] functions with namespace qualifiers in templated functions which are dependent on the templated type search for the function at parse time instead of instantiation time
2004-06-03 22:27 [Bug c++/15814] New: functions with namespace qualifiers in templated functions which are dependent on the templated type search for the function at parse time instead of instantiation time rdelashmit at soe dot sony dot com
@ 2004-06-03 22:29 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-03 22:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-06-03 22:29 -------
This is a dup of bug 11828.
*** This bug has been marked as a duplicate of 11828 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15814
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-03 22:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-03 22:27 [Bug c++/15814] New: functions with namespace qualifiers in templated functions which are dependent on the templated type search for the function at parse time instead of instantiation time rdelashmit at soe dot sony dot com
2004-06-03 22:29 ` [Bug c++/15814] " 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).