This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34178] [4.1/4.2/4.3 Regression] Compilation using -frepo fails
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Nov 2007 17:24:19 -0000
- Subject: [Bug c++/34178] [4.1/4.2/4.3 Regression] Compilation using -frepo fails
- References: <bug-34178-15404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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