This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32245] [4.1/4.2/4.3 Regression] wrong POD type initialization with pointer to member
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jun 2007 10:36:52 -0000
- Subject: [Bug c++/32245] [4.1/4.2/4.3 Regression] wrong POD type initialization with pointer to member
- References: <bug-32245-10812@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rguenth at gcc dot gnu dot org 2007-06-08 10:36 -------
Confirmed.
{
struct foo x = {.mem1=0, .mem2=-1};
<<cleanup_point struct foo x = {.mem1=0, .mem2=-1};>>;
<<cleanup_point <<< Unknown tree: expr_stmt
bar (x.mem2 == (TARGET_EXPR <D.2011, {}>).mem2) >>>
>>;
return <retval> = 0;
}
2.95 used zero for .mem2 initialization.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |wrong-code
Known to fail| |3.3.6 4.1.2 4.2.0
Known to work| |2.95.4
Last reconfirmed|0000-00-00 00:00:00 |2007-06-08 10:36:51
date| |
Summary|wrong POD type |[4.1/4.2/4.3 Regression]
|initialization with pointer |wrong POD type
|to member |initialization with pointer
| |to member
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32245