Re: g++ trouble with empty initialiser list for big std::array

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thus quoth  Mason  at 15:29 on Mon, Jan 09 2017:
> On 09/01/2017 15:20, Sergiu Ivanov wrote:
>> 
>> Not sure about the actual reason for this behaviour.
>
> When the C++ standard reaches a million pages, maybe the universe
> will implode? :-)

Haha, no idea, but I'd be curious to see :D

> Here's an interesting (?) observation.
>
> If I limit the compiler to 512 MB of memory, it errors out after
> a few seconds:
[...]

Oh, I see, thanks for testing!

So, it seems to be about g++ taking up too much memory.

> Potential candidates (?)
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56671
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68203

Yeah, I've seen these ones, but I'm rather not sure it's the same
situation, because the issue I'm having seems to be tightly linked to
initialiser lists.  That is, I can successfully compile and run code
creating quite large arrays (e.g., std::array< std::list< char >,
10000000 >, ten million elements) if I don't use (empty) initialiser
lists.

-- 
Sergiu

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux