This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15723] New: Over-eager warning not appropriate in templates
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2004 11:54:54 -0000
- Subject: [Bug c++/15723] New: Over-eager warning not appropriate in templates
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The warning (line 960) tries to catch non-sensical arithmetic typing and is generally a useful catcher of bugs. However in template contexts, tests in the code must deal with a variety of types, for some of which the test is determined (and so causes the warning) and for others of which it does useful FOC. In general, this warning should not be issued when the type in question is a tependent of a template argument, and should be issued in all other contexts.
Ivan
--
Summary: Over-eager warning not appropriate in templates
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15723