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++/15723] New: Over-eager warning not appropriate in templates


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


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