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++/16779] g++ template instantiation bug


------- Additional Comments From bangerth at dealii dot org  2004-07-27 13:29 -------
No, gcc is correct. A specialization is a function definition, not 
a template. Thus it has strong linkage. If you want it to have weak 
linkage you have to either 
1/ declare it inline 
2/ declare the existence of the specialization in the header file, and 
   put the definition of the function body into a source file. 
 
W. 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16779


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