This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11856] unsigned warning in template
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jan 2007 01:32:28 -0000
- Subject: [Bug c++/11856] unsigned warning in template
- References: <bug-11856-781@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #17 from tromey at gcc dot gnu dot org 2007-01-17 01:32 -------
A flag to control the warning does not provide
fine enough granularity of control. That is, sometimes
the warning is appropriate, and disabling the warning
would let through code that you would prefer not to let through.
One idea would be to disable the warning if the expression involves
types which came from a template instantiation (sorry, I don't know
the C++ terminology for this).
This at least would suitably solve the case I ran into while
writing gcjx.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11856