Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 84812 - sequence point warning not emitted
Summary: sequence point warning not emitted
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: gcc
Version: 8.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2003-02-21 16:25 UTC by Ben LaHaise
Modified: 2007-04-18 16:51 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2004-10-07 09:51:03 UTC

Attachments (Terms of Use)

Description Ben LaHaise 2003-02-21 16:25:47 UTC
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 09:51:03 UTC
Moved upstream:

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