http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56760
--- Comment #10 from erik.thi...@thiele-hydraulik.de 2013-03-28 16:50:06 UTC ---
But the function actually IS defined, because the call func(foo,b) works. Yes
it is not defined early enough maybe. But the linker is run after the compiler
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56760
--- Comment #8 from erik.thi...@thiele-hydraulik.de 2013-03-28 09:55:49 UTC ---
I read the section on name lookup changes at
http://gcc.gnu.org/gcc-4.7/porting_to.html
but it talks about a different kind of problem. Consider that there
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56760
--- Comment #6 from erik.thi...@thiele-hydraulik.de 2013-03-28 08:27:34 UTC ---
let me paste "v3 source code" that is also added as attachment:
namespace nam { class binbuffer {}; }
template void func (const T &a, nam
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56760
--- Comment #5 from erik.thi...@thiele-hydraulik.de 2013-03-28 08:22:19 UTC ---
Created attachment 29741
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29741
v3 source code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56760
--- Comment #4 from erik.thi...@thiele-hydraulik.de 2013-03-28 07:58:00 UTC ---
The example is reduced very much. Actually I have a module for "holder" and one
for "contain" (separate compilation units). They do not know
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56760
--- Comment #2 from erik.thi...@thiele-hydraulik.de 2013-03-28 07:05:22 UTC ---
You see attached two files. v1.cpp and v2.cpp
g++ --version
g++ (Debian 4.7.2-5) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56760
--- Comment #1 from erik.thi...@thiele-hydraulik.de 2013-03-28 07:01:12 UTC ---
Created attachment 29740
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29740
v2 source code
: normal
Priority: P3
Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: erik.thi...@thiele-hydraulik.de
Created attachment 29739
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29739
v1 source code