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++/15172] [3.3/3.4 regression] Copy constructor optimization in aggregate initialization


------- Additional Comments From mmitchel at gcc dot gnu dot org  2004-10-31 01:58 -------
The problem here is that expand_expr_real creates a temporary variable and
stores the CONSTRCUTOR corresponding to the brace-enclosed initializer there. 
Then, it copies the temporary to the global variable.

-- 


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


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