[Bug c++/15723] New: Over-eager warning not appropriate in templates
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Sun May 30 15:51:00 GMT 2004
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
More information about the Gcc-bugs
mailing list