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/51562] missing -Wsequence-point warning for expression with commas.


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

Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |NEW
            Version|4.5.2                       |4.7.0
           Keywords|                            |diagnostic
   Last reconfirmed|                            |2011-12-15
                 CC|                            |manu at gcc dot gnu.org
         Resolution|INVALID                     |
     Ever Confirmed|0                           |1
            Summary|Expression evaluation with  |missing -Wsequence-point
                   |commas seems incorrect in   |warning for expression with
                   |gcc 4.5.2, 4.4.4            |commas.

--- Comment #3 from Manuel LÃpez-IbÃÃez <manu at gcc dot gnu.org> 2011-12-15 14:45:46 UTC ---
Not sure why -Wsequence-point is missing this, but it is a bug.

Clang 3.1 does not warn either.


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