| Liste des Groupes | Revenir à cl c |
Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:Tim Rentsch <tr.17687@z991.linuxsc.com> writes:>Keith Thompson <Keith.S.Thompson+u@gmail.com> writes:>Note that in a context that requires a constant expression, overflow is>
a constraint violation. For example, a case label like:
>
case (INT_MAX + 1) * 0:
>
must be diagnosed at compile time.
gcc disagrees with you.
What makes you think so?
>
[...]
I'm skipping this and proceeding on to the original question.
I see no basis for this belief. My conclusions are based on what
the C standard actually says, rather than guesses about some
unstated "intentions". I think you would do well to reach your
conclusions based more on the actual text of the C standard, and
less on your interpretation of what the text was "intended" to
mean.
Les messages affichés proviennent d'usenet.