http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55541



Richard Biener <rguenth at gcc dot gnu.org> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

             Status|UNCONFIRMED                 |NEW

   Last reconfirmed|                            |2012-11-30

      Known to work|                            |4.1.2

   Target Milestone|---                         |4.6.4

            Summary|unable to see local         |[4.6/4.7/4.8 Regression]

                   |variables due extra lexical |unable to see local

                   |block was generated         |variables due extra lexical

                   |                            |block was generated

     Ever Confirmed|0                           |1

      Known to fail|                            |4.6.3, 4.7.2, 4.8.0



--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2012-11-30 
09:21:48 UTC ---

Confirmed.



If I enable any optimization level, like for example -Og on trunk, I get:



(gdb) start

Temporary breakpoint 1 at 0x4005a0: file t.C, line 5.

Starting program: /tmp/t 



Temporary breakpoint 1, main () at t.C:5

5       }

(gdb) p i

No symbol "i" in current context.

Reply via email to