[Bug preprocessor/126929] unclear behavior of -std=c90 for the preprocessor

vincent-gcc at vinc17 dot net via Gcc-bugs <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126929

--- Comment #4 from Vincent Lefèvre <vincent-gcc at vinc17 dot net> ---
(In reply to Drea Pinski from comment #3)
> See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=5806#c10 .

    "... the controlling constant expression ... is evaluated according to the
rules of 6.4 using arithmetic that has *at least* the ranges specified in
5.2.4.2, except that int and unsigned int act as if they have the same
representation as, respectively, long and unsigned long."

It is worded very strangely due to the part "except that int and unsigned int
act as if they have the same representation as, respectively, long and unsigned
long."

Moreover, are the computation rules specified in C90 for ranges that exceed
those of long and unsigned long?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.