This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33025] [4.3 Regression] Wrong calling of placement new with conditionals
- From: "pinskia 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 Aug 2007 18:55:25 -0000
- Subject: [Bug c++/33025] [4.3 Regression] Wrong calling of placement new with conditionals
- References: <bug-33025-1884@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-08-08 18:55 -------
data[i] = (i%2==0) ? new(alloc.value()) unsigned(2) :
new(alloc()) unsigned(1);
D.2395 = value (&alloc);
D.2367 = D.2395;
D.2396 = operator() (&alloc);
unsigned int * D.2367;
<<cleanup_point <<< Unknown tree: expr_stmt
(void) (D.2367 = value (&alloc)) >>>
>>;
unsigned int * D.2384;
<<cleanup_point <<< Unknown tree: expr_stmt
(void) (D.2384 = operator() (&alloc)) >>>
>>;
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Keywords| |wrong-code
Summary|Wrong optimisation |[4.3 Regression] Wrong
| |calling of placement new
| |with conditionals
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33025