News for hackers. Stuff that matters.
Re:“It is never a compiler error” by TickleSteve on Wednesday November 15, 2017 @01:33AM (#15701857)
That sounds like a bug in the standard library... not a bug in the compiler.
Re:“It is never a compiler error” by cperciva on Wednesday November 15, 2017 @02:14AM (#15702011)
Not necessarily. Could be a problem with passing 64-bit values to varadic functions generally. I could definitely imagine this happening on a 32-bit platform.
Re:“It is never a compiler error” by thriftwy on Wednesday November 15, 2017 @05:23AM (#15702766)
This has bitten me on QNX. I was porting UQM for fun, and it was failing when entering a dialogue,

Turns out, on QNX you can't pass short int into variadic function, which is expected behavior as far as C is concerned (you should only pass int or full size types), but it worked on every other arch so it took me a while.

Re:“It is never a compiler error” by com2kid on Wednesday November 15, 2017 @12:31PM (#15705584)
The generated assembly was garbage, so I assume it was a compiler bug. It also got fixed in later revisions, but since the compiler is shipped with the CRT... :)

I don't actually recall if we were using the shipped CRT or not, I'm guessing only minimal parts of it were used, if any, since embedded projects tend to write their own subset of the needed standard library functions.