http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56760
--- Comment #11 from Jonathan Wakely 2013-03-28
17:19:06 UTC ---
(In reply to comment #10)
> But the function actually IS defined,
No it isn't! Please read my answer again carefully.
The function that gets called is
template void
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.
Ho
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56760
--- Comment #9 from Jonathan Wakely 2013-03-28
11:05:26 UTC ---
(In reply to comment #8)
> 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. Con
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 the
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56760
--- Comment #7 from Jonathan Wakely 2013-03-28
09:16:52 UTC ---
Read the section on name lookup changes at
http://gcc.gnu.org/gcc-4.7/porting_to.html
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::binbuffer &b);
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 about each other.
I
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56760
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
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 softwar
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
11 matches
Mail list logo