Assignee: unassigned at gcc dot gnu.org
Reporter: ian at g0tcd dot com
Created attachment 31979
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31979&action=edit
Small source file exhibiting the problem
If a for loop has some sort of error check to break out of the loop
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59933
Ian Hamilton changed:
What|Removed |Added
CC||ian at g0tcd dot com
--- Comment #2 from
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59933
--- Comment #3 from Ian Hamilton ---
Just a thought.
Does ((int)(sizeof(NSQ_del_dec_struct) / sizeof(opus_int32)) correctly give you
the size of the sLPC_Q14 array?
>From playing with my test case, it seems that if the optimiser spots that k
wil
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59933
--- Comment #9 from Ian Hamilton ---
Yes, that's all proper and correct. The invalid C code induces undefined
behaviour. I don't think anyone is disputing that.
However, to be pragmatic for a moment, the experience of thousands of
developers out
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59933
--- Comment #13 from Ian Hamilton ---
(In reply to Mark Warner from comment #11)
> I'm confused .. what about..
> for (k = i; k < (int)(sizeof(NSQ_del_dec_struct) / sizeof(opus_int32)); ++k)
> ... is illegal or invalid ?
> Why does it only fail if