PDA

View Full Version : "The Little C Function From Hell". Interesting read..



muteXe
June 20th, 2012, 11:55 AM
http://blog.regehr.org/archives/482

satsujinka
June 20th, 2012, 12:12 PM
It's interesting that despite the behavior being clearly specified, it's apparently so difficult to get right. Of course, it could just be that this is of marginal interest so not too many people even bothered to look into it.

Bachstelze
June 20th, 2012, 12:20 PM
It's not difficult at all to get right, as demonstrated by the fact that it was promptly fixed in clang. The only thing that it proves is that the GCC devs are good at ignoring bug reports, but that's not exactly news...

trent.josephsen
June 20th, 2012, 03:02 PM
I wish the author wouldn't say "implicit cast" when "implicit conversion" is meant. Casts are always explicit. (He's right that the conversion in question is supposed to follow the same rules as a cast.)