This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11091] Wrong code in variable initialization
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Jun 2003 23:10:11 -0000
- Subject: [Bug c++/11091] Wrong code in variable initialization
- References: <20030604194320.11091.dej@inode.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11091
------- Additional Comments From pinskia@physics.uc.edu 2003-06-04 23:10 -------
Also is there any way you can get a smaller example?
Also I cannot reproduce it with (I do not get an abort) (I was using 3.2.3 and 3.3.1 (20030526) and
mainline (20030604)):
extern "C" void abort();
class temp
{
public:
char *t;
public:
temp():t(__null){}
};
temp test1()
{
temp obj;
if(obj.t != __null)
abort();
return obj;
}
int main()
{
temp t2 = test1();
if(t2.t != __null)
abort();
return 0;
}
Can you try this?
I am compiling 3.2.2 right now to see if that can reproduce it.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.