[Bug c/67661] Wrong warning when declare VLAs: operation on 'x' may be undefined [-Wsequence-point]

2015-09-23 Thread leechung at 126 dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67661 --- Comment #2 from leechung --- (In reply to jos...@codesourcery.com from comment #1) > You'll need to give a full testcase (complete compilable file and options > used to compile it). What you gave isn't a compilable testcase; it gives >

[Bug c/67661] New: Wrong warning when declare VLAs: operation on 'b' may be undefined [-Wsequence-point]

2015-09-21 Thread leechung at 126 dot com
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: leechung at 126 dot com Target Milestone: --- The following code produces a warning: operation on 'b' may be undefined.[-Wsequence-point] int x = 0, y [++ x], z [++ x