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++/47734] New: no "comparisons like X<=Y<=Z do not have their mathematical meaning" warning in c++


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47734

           Summary: no "comparisons like X<=Y<=Z do not have their
                    mathematical meaning" warning in c++
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: sds@gnu.org


gcc issues a warning
comparisons like X<=Y<=Z do not have their mathematical meaning
for code like
if (-2 < -1 < 0) {
 ....
}
but c++ does not.


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