This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13549] [3.4 Regression] Regression compiling Boost.Python test
- From: "dave at boost-consulting dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jan 2004 02:55:42 -0000
- Subject: [Bug c++/13549] [3.4 Regression] Regression compiling Boost.Python test
- References: <20040102184817.13549.rwgk@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dave at boost-consulting dot com 2004-01-03 02:55 -------
It's not that simple. There are two searches, one at the point of definition
and another at the point of instantiation. One way to read this is that in my
little example, the first search finds the "f" that's defined there. Since
there has been no instantiation of g, the second search is never performed in
the little example. In the testcase, the required definition of "get" shows
up before the point of instantiation.
Incidentally, not only ICC6 but also EDG's latest compiler accepts this code
(http://www.comeaucomputing.com/tryitout). EDG's Steve Adamczyk is sometimes
known as "Mr. name lookup", so maybe you should ask him.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13549