Out Of Memory when compiling complex template in C++

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

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).

Can you raise your process memory limit and find out how much memory the compilation will end up taking?

  -Hal

Just like Tim, I can't even get this to compile without seeing various
errors.

Joerg

I get actual source after about 6.5GB, and it seems to be in an
infinite loop now but not growing.

Tim.