This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23542] Warn template instantiation calling static functions
- From: "veksler at il dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Aug 2005 07:11:27 -0000
- Subject: [Bug c++/23542] Warn template instantiation calling static functions
- References: <20050824064723.23542.veksler@il.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From veksler at il dot ibm dot com 2005-08-24 07:11 -------
There is another enhancement possibility for this issue.
GCC may mark the instantiated template function is such
a way that the linker will detect multiple instantiation
(which will lead to undefined behavior).
When the linker sees multiple instantiation, it will emit
multiple definition of `examine<outer_t<inner_t> >(const outer_t<inner_t> &)'
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23542