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++/28370] [4.2 Regression] undefined reference to template class static variable in an anonymous namespace



------- Comment #9 from jakub at gcc dot gnu dot org  2006-07-13 16:25 -------
The reason why the var is not emitted seems to be that
note_vague_linkage_var is not called on it in finish_static_data_member_decl.
If I replace
  if (! processing_template_decl && TREE_PUBLIC (decl))
    note_vague_linkage_var (decl);
back with:
  if (! processing_template_decl)
    note_vague_linkage_var (decl);
it works just fine.


-- 


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


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