------- Comment #2 from aoliva at gcc dot gnu dot org 2009-10-08 21:34 ------- Yup, ADDR_EXPRs don't count as dereferences in debug stmts, but if the variable doesn't get a memory location, we end up dropping the whole expression. We have to. Finding another location holding the value of b isn't enough if the relevant value is the address of b. Since b did not get a memory location, its address is non-existent.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41616