[Bug c++/25878] Excessive memory and compile-time with std::map init sequence
rguenth at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Jan 20 15:26:00 GMT 2006
------- 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
More information about the Gcc-bugs
mailing list