This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13549] [3.4 Regression] Regression compiling Boost.Python test


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]