#2548: Compilation failure: "const" assignment in LoopControl/src/loopcontrol.cc
| Reporter: | Bernard Kelly |
| Status: | open |
| Milestone: | ET_2021_05 |
| Version: | ET_2021_05 |
| Type: | bug |
| Priority: | major |
| Component: | EinsteinToolkit thorn |
Comment (by Roland Haas):
I can compile fine with Intel 17 on Blue Waters if I use a modern enough C++ library. However if I force it to use gcc 4.3 by using --gxx-name then I get the same error that you see:
COMPILING Carpet/LoopControl/src/loopcontrol.cc /mnt/a/u/staff/rhaas/ET_Next/arrangements/Carpet/LoopControl/src/loopcontrol.cc(70): error: function call must have a constant value in a constant expression lc_random.max() - lc_random.min() + 1; ^ /mnt/a--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2548/compilation-failure-const-assignment-in