[llvm-dev] Out Of Memory when compiling complex template in C++

Piotr Kosek via llvm-dev llvm-dev at lists.llvm.org
Sun Aug 20 08:40:31 PDT 2017


Hello all,

I'm writing regarding bug:

https://bugs.llvm.org/show_bug.cgi?id=27371

I can confirm it happens in 4.0.1 as well. It is *not* a preprocessor
issue, it's clearly codegen/ilgen that breaks existing project
compilation. Are there any plans to get some work on it?

More info: peek memory usage is around ~300 mb when Out-Of-Memory is
casted (on system with 16 gb of RAM). It is reproducible each time
compilation of my project is run. Visual Studio 2015 and Visual Studio 2017
nativily compiles this project without any problems.

The project uses heavily template programming, but all templates are
instanced at least once (so Visual does not skip them).

If you need more information I will be glad to provide them

Best regards,
Piotr Kosek


More information about the llvm-dev mailing list