[LLVMbugs] [Bug 19238] New: Debug info not generated correctly for function static variables
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Mar 24 17:43:57 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=19238
Bug ID: 19238
Summary: Debug info not generated correctly for function static
variables
Product: clang
Version: 3.4
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: cemacken at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
#include<stdio.h>
int main() {
static int X = 10;
{
static bool X = false;
printf("...");
}
printf("...");
}
If you compile the code above with clang 3.4 and break at the printf()
statements (gdb or lldb) then p X will always show X to be 10. The same code
compiled with GCC shows X to be false in the first case and 10 in the second as
expected.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140325/71f16390/attachment.html>
More information about the llvm-bugs
mailing list