[LLVMbugs] [Bug 4613] New: Member variable incorrectly overwritten when assigning value to other member variable
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Jul 23 11:42:13 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4613
Summary: Member variable incorrectly overwritten when assigning
value to other member variable
Product: tools
Version: 2.5
Platform: PC
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: llvm-g++
AssignedTo: unassignedbugs at nondot.org
ReportedBy: avleeuwen at gmail.com
CC: baldrick at free.fr, llvmbugs at cs.uiuc.edu
Created an attachment (id=3237)
--> (http://llvm.org/bugs/attachment.cgi?id=3237)
Testcase that shows incorrectly overwritten member variable
When compiling and running the attached program using llvm-g++ 2.5 on my
system, it will output "Test failed", indicating that a member variable that
was not written to by the user has been overwritten.
The member variable that is being incorrectly overwritten ('info') is preceded
by three int member variables and a struct member variable. Assigning a value
to the struct member variable using the return value of a function causes info
to be overwritten as well.
I compiled the file using
$ llvm-g++ -g -o test test.cpp
System details:
FreeBSD 7.2 / amd64 (64-bit)
llvm 2.5
Compiled using gcc 4.2.1 (system compiler)
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list