re PR c++/17256 (undefined but used static or inline functions should be diagnosed)
authorJason Merrill <jason@redhat.com>
Mon, 7 Nov 2005 06:17:47 +0000 (01:17 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 7 Nov 2005 06:17:47 +0000 (01:17 -0500)
commit96c993a8902b5579e463de5aa60855ee304bfce6
treeb3954c1365c27900e303289a67fbfaf60e6de188
parentc0572427ed71b533279fd15dfa22473b7cefaf9a
re PR c++/17256 (undefined but used static or inline functions should be diagnosed)

        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.

Co-Authored-By: James A. Morrison <phython@gcc.gnu.org>
From-SVN: r106581
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/warn/undefined1.C [new file with mode: 0644]