[Bug c++/23542] Warn template instantiation calling static functions

2005-08-24 Thread pinskia at gcc dot gnu dot org
--- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-24 11:44 --- You are wrong in that saying replace static with anon-namespace should also be rejected for considered. This is a dup of bug 19092. *** This bug has been marked as a duplicate of 19092 *** --

[Bug c++/23542] Warn template instantiation calling static functions

2005-08-24 Thread veksler at il dot ibm dot com
--- 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