News for hackers. Stuff that matters.
Re:Linus on compiler warnings and code reviews by geocar on Wednesday September 23, 2015 @04:10PM (#10267806)
sizeof(a) is sizeof(int*) in your example because of the C standard: That is to say this is a bug in the standard, and not a bug in any particular compiler.
Re:Linus on compiler warnings and code reviews by acconsta on Wednesday September 23, 2015 @04:32PM (#10267957)
Yes, but why does the standard have that bug?
Re:Linus on compiler warnings and code reviews by geocar on Wednesday September 23, 2015 @04:56PM (#10268146)
Probably because the compilers that were standardized had that bug.