------- Comment #2 from jakub at gcc dot gnu dot org  2007-11-27 17:24 -------
The problem is that repo_emit_p decides something needs to be emitted as if
-fno-repo was used, but import_export_decl then can just ignore it and not emit
it anyway (set import_p = true).  When repo_emit_p said it should be emitted,
it doesn't add it to pending_repo, and then import_export_decl because -frepo
implies -fno-implicit-templates.
So, IMHO either we replace the occurences of flag_implicit_templates in
import_export_decl with flag_implicit_templates && !flag_use_repository,
i.e. when -frepo, we just honor what repo_emit_p told us, don't try to override
it, or at the end of function if (flag_use_repository && import_p && emit_p ==
2)
call some new function in repo.c which will add it to pending_repo.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mmitchel at gcc dot gnu dot
                   |                            |org


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

Reply via email to