This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11228] [3.3/3.4 regression] ICE on new-expression using array operator new and default-initialization
- From: "austern at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jun 2003 04:27:52 -0000
- Subject: [Bug c++/11228] [3.3/3.4 regression] ICE on new-expression using array operator new and default-initialization
- References: <20030617231527.11228.austern@apple.com>
- 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=11228
------- Additional Comments From austern at apple dot com 2003-06-19 04:27 -------
The main difference is that when T is a POD type, new T[n]() default-initializes the members of the
array but new T[n] leaves them in an indeterminate value. Probably not an important difference
most of the time.