OSDN Git Service

PR c++/34178
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Dec 2007 21:26:29 +0000 (21:26 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 9 Dec 2007 21:26:29 +0000 (21:26 +0000)
commitaf3f756da550426ce8cd5789e7279a947d82a4e2
tree2e8a54c441e89ce480be1ab17f54a52611672c65
parente6581036ca474fb7ed34a7cbc2695e58526c3c2f
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130727 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/repo.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/repo6.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/repo7.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/repo8.C [new file with mode: 0644]