[C++ PATCH] Fix -frepo (PR c++/34178, take 2)

Mark Mitchell mark@codesourcery.com
Thu Dec 6 01:03:00 GMT 2007


Jakub Jelinek wrote:

> 2007-12-05  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c++/34178
> 	* repo.c (repo_emit_p): Return 2 for
> 	DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P decls only if they are
> 	const.

Why don't we want to use DECL_INTEGRAL_CONSTANT_VAR_P here?

> 	* decl2.c (import_export_decl): Don't make VAR_DECLs import_p when
> 	flag_use_repository and repo_emit_p returned 2.

> +      if ((flag_implicit_templates
> +	   && !flag_use_repository)

Shouldn't that condition involve emit_p, rather than just be
!flag_use_repository?

Thanks,

-- 
Mark Mitchell
CodeSourcery
mark@codesourcery.com
(650) 331-3385 x713



More information about the Gcc-patches mailing list