This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/81474] out of memory on constexpr calculation
- From: "bobk-off at yandex dot ru" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 12 Sep 2017 07:22:07 +0000
- Subject: [Bug c++/81474] out of memory on constexpr calculation
- Auto-submitted: auto-generated
- References: <bug-81474-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81474
--- Comment #2 from Fedor Bobkov <bobk-off at yandex dot ru> ---
Thread-starting example is intended only for demonstration of out of memory
error on simply example. In real projects out of memory error occurs with much
smaller loops which just use bigger amount of data.
I had got this error on compile-time bilinear downscaling of signed distance
field image. May be it is not proper way to use constexprs but it is very
useful in embedded applications (with small RAM and big ROM (flash) memory).