[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
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
Reply to: