[Bug c/25151] GCC issues warnings to a syntactically correct expression.

2006-09-17 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-09-18 01:38 --- This code still involes undefined runtime behavior. So the warning is valid. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added ---

[Bug c/25151] GCC issues warnings to a syntactically correct expression.

2005-11-28 Thread mishabear at gmail dot com
--- Comment #2 from mishabear at gmail dot com 2005-11-29 07:44 --- Subject: Re: GCC issues warnings to a syntactically correct expression. In fact I want to do something lik this: int main() { int ia[10]; int *pi, i; i=10; pi = ( ((i>=0) && (i<10)) ? (

[Bug c/25151] GCC issues warnings to a syntactically correct expression.

2005-11-28 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2005-11-29 06:28 --- Note the warning is to warn things like: a = a++; which is syntactically correct but semantically questionable. Note there are a lot of things which are syntactially correct but are semantically questionable --