This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/33025] [4.3 Regression] Wrong calling of placement new with conditionals



------- Comment #5 from jakub at gcc dot gnu dot org  2007-08-20 07:54 -------
Subject: Bug 33025

Author: jakub
Date: Mon Aug 20 07:53:58 2007
New Revision: 127639

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127639
Log:
        PR c++/33025
        * init.c (build_new_1): Rename placement_var variable to
placement_expr.
        Initialize it with save_expr rather than get_temp_regvar.

        * g++.dg/init/new23.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/init/new23.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/init.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33025


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]