C99 Designated Initializer duplicate index not flagged at all in build output or lint
问题 I played around with designated initializers a bit the other day and noticed, to my surprise, that it is valid to use the same index more than once. What's more, it didn't even produce a compiler warning, error, or even informational statement when I did so, and even PC-Lint didn't seem to care (which I think surprised me the most). I'm wondering if there's a reason for compilers not even providing an information message in this case or if there are additional compiler/lint/etc. options that