This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/55541] [4.6/4.7/4.8 Regression] unable to see local variables due extra lexical block was generated
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 30 Nov 2012 09:21:48 +0000
- Subject: [Bug debug/55541] [4.6/4.7/4.8 Regression] unable to see local variables due extra lexical block was generated
- Auto-submitted: auto-generated
- References: <bug-55541-4@http.gcc.gnu.org/bugzilla/>
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.