Re:GCC 8.1 Released
by wilun on Wednesday May 02, 2018 @02:03PM
(#16979601)
You can not expect any consistency with UB.
[ Parent
| on HN ]
Re:GCC 8.1 Released
by lyricaljoke on Wednesday May 02, 2018 @03:24PM
(#16980336)
I don't disagree, and I'm not sure what about my comment would suggest that I expect consistency there. What I was arguing was that any code relying on UB is dangerous / broken, so it's a good idea to surface any underlying code issues at all optimization levels by standardizing how it's handled.
Re:GCC 8.1 Released
by pritambaral on Wednesday May 02, 2018 @02:26PM
(#16979806)
Yes, but a more-consistent-with-UB compiler is better to use than a less-consistent-with-UB.