This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
new operator in gcc-3.4
- From: "Lars Callenbach" <lars dot callenbach at gmx dot de>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 13 Nov 2005 21:50:26 +0100 (MET)
- Subject: new operator in gcc-3.4
I have tried to compile
####...
double ***v;
v = new double **[1000000];
####...
in different classes. Sometimes the program shows a sigsegv at the new
operator. Using gdb the code has called the following functions:
operator new[]() -> operator new() -> malloc () -> _int_malloc()
Is this a g++-3.4 bug? Is it not possible to use the previous statement in
constructors in header files? Is there any workaround for threedimensional
arrays - except vector<vector<vector<... statements that are not fast?
Thanx in advance,
Lars
--
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++