------- Comment #2 from paolo dot carlini at oracle dot com 2010-06-15 23:13 ------- For the record, neither ICC nor SunStudio warn. I seem to remember that in the past people often commented that it's pretty tough to produce warnings for this kind of mistake.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44552