| ▲ | nikic 8 months ago | |||||||||||||||||||||||||
Fun fact: GCC decided to adopt Clang's (old) behavior at the same time Clang decided to adopt GCC's (old) behavior. So now you have this matrix of behaviors: * Old GCC: Initializes whole union. * New GCC: Initializes first member only. * Old Clang: Initializes first member only. * New Clang: Initializes whole union. | ||||||||||||||||||||||||||
| ▲ | augusto-moura 8 months ago | parent | next [-] | |||||||||||||||||||||||||
That's funny and sad at the same time. And it shows a deeper problem, even though they are willing to align behavior between each other, they failed to communicate and discuss what would be the best approach. That's a bit tragic, IMO | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | homebrewer 8 months ago | parent | prev | next [-] | |||||||||||||||||||||||||
Since having multiple compilers is often touted as an advantage, how often do situations like what you're describing happen compared to the opposite — when a second compiler surfaces bugs in one's application or the other compiler? | ||||||||||||||||||||||||||
| ||||||||||||||||||||||||||
| ▲ | iamthejuan 8 months ago | parent | prev | next [-] | |||||||||||||||||||||||||
It is like an era of average. | ||||||||||||||||||||||||||
| ▲ | zeroq 8 months ago | parent | prev [-] | |||||||||||||||||||||||||
i will call it "webification" of C! | ||||||||||||||||||||||||||