This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/17207] No warning for nonsense template


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]