[Bug libstdc++/80290] [6/7 Regression] g++ uses unreasonable amount of memory compiling nested string maps

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 4 11:12:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80290

--- Comment #10 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Or even just:

#include <utility>

typedef std::pair<unsigned, std::pair<const char *, std::pair<const char *,
std::pair<const char *, std::pair<const char *, const char *> > > > > FruMap;

#define INIT { 1, { "", { "", { "", {"",""}, }, } }, }

extern const FruMap frus[] = {
INIT,
INIT,
INIT,
INIT,
INIT,
};

All the time is spent in implicit_conversion().


More information about the Gcc-bugs mailing list