Skip to content

fix[sda]: maybe fix breaking build on gcc@11

Eric Müller requested to merge maybe_fix_sda_on_gcc11 into master

There's a build error when building on gcc@11.3 (JSC compiler, reported by @andreasmueller):

  >> 740    tools/DT-Grid/tools/UHBDgrd.hpp:295:76: error: taking address of rvalue [-fpermissive]
     741      295 |         slice_n = static_cast<std::ostringstream*>( &(std::ostringstream() << k) )->str();

As gcc@11 switched from -std=gnu++14 to -std=gnu++17, this might fix this problem (actually the code needs to be fixed, but idc for now).

Merge request reports