This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25878] Excessive memory and compile-time with std::map init sequence
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jan 2006 15:26:19 -0000
- Subject: [Bug c++/25878] Excessive memory and compile-time with std::map init sequence
- References: <bug-25878-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from rguenth at gcc dot gnu dot org 2006-01-20 15:26 -------
Basically, the initialization sequence expands to a sequence of (.03.gimple):
__comp_ctor (&D.68628);
try
{
__comp_ctor (&D.68629, &"ab"[0], &D.68628);
try
{
D.70658 = &this->iso639_1;
D.70666 = operator[] (D.70658, &D.68629);
D.70667 = operator= (D.70666, &"Abkhazian"[0]);
__comp_ctor (&D.68625);
try
{
__comp_ctor (&D.68626, &"abk"[0], &D.68625);
try
{
D.70659 = &this->iso639_2;
D.70668 = operator[] (D.70659, &D.68626);
operator= (D.70668, D.70667);
}
}
finally
{
__comp_dtor (&D.68626);
}
}
finally
{
__comp_dtor (&D.68625);
}
}
finally
{
__comp_dtor (&D.68629);
}
}
finally
{
__comp_dtor (&D.68628);
}
Now do this 472 times and you're screwed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25878