Bug 84812 - sequence point warning not emitted
sequence point warning not emitted
Status: CLOSED UPSTREAM
Product: Red Hat Linux
Classification: Retired
Component: gcc (Show other bugs)
8.0
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-02-21 11:25 EST by Ben LaHaise
Modified: 2007-04-18 12:51 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2004-10-07 05:51:03 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ben LaHaise 2003-02-21 11:25:47 EST
The program below should emit a warning when compiled with -Wall or
-Wsequence-point as a is read and modified.  Also, would it be possible to get
-Wsequence-point enabled by default in gcc?

int foo (int count)
{
        unsigned a = count;
        if ((a -= sizeof(count)) > a)
                return -1;
        return 0;
}
Comment 1 Jakub Jelinek 2004-10-07 05:51:03 EDT
Moved upstream:
http://gcc.gnu.org/PR17880

Note You need to log in before you can comment on or make changes to this bug.