This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17256] undefined but used static or inline functions should be diagnosed
- From: "geoffk at geoffk dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Sep 2004 00:51:41 -0000
- Subject: [Bug c++/17256] undefined but used static or inline functions should be diagnosed
- References: <20040901000613.17256.jsm28@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From geoffk at geoffk dot org 2004-09-01 00:51 -------
Subject: Re: New: undefined but used static or inline
functions should be diagnosed
The code that does this in the case where an inline function is truly used
lives in cp/decl2.c, just under the comment
/* All used inline functions must have a definition at this point. */
However, it checks TREE_USED, which may not be the right thing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17256