re PR c++/34178 (Compilation using -frepo fails)
PR c++/34178 PR c++/34340 * repo.c (repo_emit_p): Return 2 for DECL_INTEGRAL_CONSTANT_VAR_P in class scope rather than DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P. Return 2 also if DECL_EXPLICIT_INSTANTIATION. * decl2.c (import_export_decl): Don't make VAR_DECLs import_p when flag_use_repository and repo_emit_p returned 2. * g++.dg/template/repo6.C: New test. * g++.dg/template/repo7.C: New test. * g++.dg/template/repo8.C: New test. From-SVN: r130727
Showing
gcc/testsuite/g++.dg/template/repo6.C
0 → 100644
gcc/testsuite/g++.dg/template/repo7.C
0 → 100644
gcc/testsuite/g++.dg/template/repo8.C
0 → 100644
Please
register
or
sign in
to comment