ValeevGroup / SeQuant

SeQuant: Symbolic Algebra of Tensors over Operators and Scalars
GNU General Public License v3.0
17 stars 6 forks source link

Compilation error with GCC 12 #207

Closed Krzmbrzl closed 5 months ago

Krzmbrzl commented 5 months ago
In file included from /home/adam/Documents/Git/SeQuant/SeQuant/core/index_space_registry.hpp:8,
                 from /home/adam/Documents/Git/SeQuant/SeQuant/core/context.hpp:5,
                 from /home/adam/Documents/Git/SeQuant/SeQuant/core/context.cpp:2:
/home/adam/Documents/Git/SeQuant/SeQuant/core/space.hpp: In constructor ‘constexpr sequant::TypeAttr::TypeAttr(bitset_t)’:
/home/adam/Documents/Git/SeQuant/SeQuant/core/space.hpp:47:3: error: the value of ‘sequant::TypeAttr::reserved’ is not usable in a constant expression
   47 |   }
      |   ^
/home/adam/Documents/Git/SeQuant/SeQuant/core/space.hpp:131:25: note: ‘sequant::TypeAttr::reserved’ was not declared ‘constexpr’
  131 |   const static TypeAttr reserved;
      |                         ^~~~~~~~
/home/adam/Documents/Git/SeQuant/SeQuant/core/space.hpp: In constructor ‘constexpr sequant::QuantumNumbersAttr::QuantumNumbersAttr(bitset_t)’:
/home/adam/Documents/Git/SeQuant/SeQuant/core/space.hpp:164:3: error: the value of ‘sequant::QuantumNumbersAttr::reserved’ is not usable in a constant expression
  164 |   }
      |   ^
/home/adam/Documents/Git/SeQuant/SeQuant/core/space.hpp:250:35: note: ‘sequant::QuantumNumbersAttr::reserved’ was not declared ‘constexpr’
  250 |   const static QuantumNumbersAttr reserved;
      |
bimalgaudel commented 5 months ago

Is it master branch? @Krzmbrzl

Krzmbrzl commented 5 months ago

yes