[Bug c++/70824] New: cc1plus consumes all available memory on specific template code

2016-04-27 Thread trulsjo at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: trulsjo at gmail dot com Target Milestone: --- Created attachment 38348 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38348&action=edit Prerocessed source for failed

[Bug c++/70824] cc1plus consumes all available memory on specific template code

2016-05-04 Thread trulsjo at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70824 --- Comment #1 from Truls Johnsen --- Reduced the test case to only include and changed max to a one-liner that still shows the same behavior. Removing constexpr from max, or the (unused) template from a() makes the code compile: #include con

[Bug c++/70824] cc1plus consumes all available memory on specific template code

2016-05-04 Thread trulsjo at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70824 Truls Johnsen changed: What|Removed |Added Attachment #38348|0 |1 is obsolete|