OSDN Git Service

PR c++/17256
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Nov 2005 06:17:47 +0000 (06:17 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 7 Nov 2005 06:17:47 +0000 (06:17 +0000)
commit7946223ee5f94d45b8c8f28fa653853a60f01f59
treeb3954c1365c27900e303289a67fbfaf60e6de188
parentcc016fcbf41306d99127c397bc4703614940e341
    PR c++/17256
        * decl2.c (cp_finish_file): Fix conditions for undefined warning.
        Set TREE_NO_WARNING instead of TREE_PUBLIC.
        * pt.c (instantiate_pending_templates): Set DECL_INITIAL to avoid
        a warning on a function we didn't instantiate because of excessive
        recursion.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@106581 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/warn/undefined1.C [new file with mode: 0644]