This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17207] No warning for nonsense template
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Aug 2004 13:15:46 -0000
- Subject: [Bug c++/17207] No warning for nonsense template
- References: <20040827073010.17207.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From bangerth at dealii dot org 2004-08-27 13:15 -------
I can think of a number of good reasons to use templates that don't
use their argument. For example, they may have static variables
in them and you may want to use one or the other one. libstdc++
uses something like this for the allocator classes. A warning
would certainly be very unwelcome to many.
W.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17207