Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_unordered_map.cpp: error: modification of 'ze_map' is not a constant expression; error: non-constant condition for static assertion #163

Open
barracuda156 opened this issue Sep 19, 2023 · 2 comments

Comments

@barracuda156
Copy link

:info:build [ 92%] Building CXX object tests/CMakeFiles/frozen.tests.dir/test_unordered_set.cpp.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/build/tests && /opt/local/bin/g++-mp-12  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include -pipe -Os -std=c++14 -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++20 -arch ppc -mmacosx-version-min=10.6 -Wall -Wextra -Wpedantic -Werror -Wshadow -MD -MT tests/CMakeFiles/frozen.tests.dir/test_unordered_set.cpp.o -MF CMakeFiles/frozen.tests.dir/test_unordered_set.cpp.o.d -o CMakeFiles/frozen.tests.dir/test_unordered_set.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_map.cpp: In function 'void C_A_T_C_H_T_E_S_T_0()':
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_map.cpp:22:40:   in 'constexpr' expansion of 'ze_map.frozen::unordered_map<int, double, 1>::count<int>(3)'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_map.h:121:17:   in 'constexpr' expansion of '((const frozen::unordered_map<int, double, 1>*)this)->frozen::unordered_map<int, double, 1>::count<int, frozen::elsa<int>, std::equal_to<int> >((* & key), (* &((const frozen::unordered_map<int, double, 1>*)this)->frozen::unordered_map<int, double, 1>::hash_function()), (* &((const frozen::unordered_map<int, double, 1>*)this)->frozen::unordered_map<int, double, 1>::key_eq()))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_map.h:116:28:   in 'constexpr' expansion of '((const frozen::unordered_map<int, double, 1>*)this)->frozen::unordered_map<int, double, 1>::lookup<int, frozen::elsa<int> >((* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_map.h:219:23:   in 'constexpr' expansion of 'frozen::unordered_map<int, double, 1>::lookup_impl<const frozen::unordered_map<int, double, 1>&, int, frozen::elsa<int> >((*(const frozen::unordered_map<int, double, 1>*)this), (* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_map.h:214:43:   in 'constexpr' expansion of 'self.frozen::unordered_map<int, double, 1>::tables_.frozen::bits::pmh_tables<2, frozen::elsa<int> >::lookup<int, frozen::elsa<int> >((* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_map.cpp:22:42:   in 'constexpr' expansion of 'frozen::bits::seed_or_index()'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_map.cpp:22:42: error: modification of 'ze_map' is not a constant expression
:info:build    22 |   constexpr auto nocount = ze_map.count(3);
:info:build       |                                          ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_map.cpp: In function 'void C_A_T_C_H_T_E_S_T_15()':
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_map.cpp:180:17: error: non-constant condition for static assertion
:info:build   180 |   static_assert(!ce.count(0), "");
:info:build       |                 ^~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_map.cpp:180:26:   in 'constexpr' expansion of 'ce.frozen::unordered_map<unsigned int, unsigned int, 2>::count<int>(0)'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_map.h:121:17:   in 'constexpr' expansion of '((const frozen::unordered_map<unsigned int, unsigned int, 2>*)this)->frozen::unordered_map<unsigned int, unsigned int, 2>::count<int, frozen::elsa<unsigned int>, std::equal_to<unsigned int> >((* & key), (* &((const frozen::unordered_map<unsigned int, unsigned int, 2>*)this)->frozen::unordered_map<unsigned int, unsigned int, 2>::hash_function()), (* &((const frozen::unordered_map<unsigned int, unsigned int, 2>*)this)->frozen::unordered_map<unsigned int, unsigned int, 2>::key_eq()))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_map.h:116:28:   in 'constexpr' expansion of '((const frozen::unordered_map<unsigned int, unsigned int, 2>*)this)->frozen::unordered_map<unsigned int, unsigned int, 2>::lookup<int, frozen::elsa<unsigned int> >((* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_map.h:219:23:   in 'constexpr' expansion of 'frozen::unordered_map<unsigned int, unsigned int, 2>::lookup_impl<const frozen::unordered_map<unsigned int, unsigned int, 2>&, int, frozen::elsa<unsigned int> >((*(const frozen::unordered_map<unsigned int, unsigned int, 2>*)this), (* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_map.h:214:43:   in 'constexpr' expansion of 'self.frozen::unordered_map<unsigned int, unsigned int, 2>::tables_.frozen::bits::pmh_tables<4, frozen::elsa<unsigned int> >::lookup<int, frozen::elsa<unsigned int> >((* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_map.cpp:180:17:   in 'constexpr' expansion of 'frozen::bits::seed_or_index()'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_map.cpp:180:17: error: modification of 'ce' is not a constant expression
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_map.cpp:181:28: error: non-constant condition for static assertion
:info:build   181 |   static_assert(ce.find(0) == ce.end(), "");
:info:build       |                 ~~~~~~~~~~~^~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_map.cpp:181:24:   in 'constexpr' expansion of 'ce.frozen::unordered_map<unsigned int, unsigned int, 2>::find<int>(0)'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_map.h:151:16:   in 'constexpr' expansion of '((const frozen::unordered_map<unsigned int, unsigned int, 2>*)this)->frozen::unordered_map<unsigned int, unsigned int, 2>::find<int, frozen::elsa<unsigned int>, std::equal_to<unsigned int> >((* & key), (* &((const frozen::unordered_map<unsigned int, unsigned int, 2>*)this)->frozen::unordered_map<unsigned int, unsigned int, 2>::hash_function()), (* &((const frozen::unordered_map<unsigned int, unsigned int, 2>*)this)->frozen::unordered_map<unsigned int, unsigned int, 2>::key_eq()))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_map.h:143:21:   in 'constexpr' expansion of 'frozen::unordered_map<unsigned int, unsigned int, 2>::find_impl<const frozen::unordered_map<unsigned int, unsigned int, 2>&, int, frozen::elsa<unsigned int>, std::equal_to<unsigned int> >((*(const frozen::unordered_map<unsigned int, unsigned int, 2>*)this), (* & key), (* & hash), (* & equal))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_map.h:195:27:   in 'constexpr' expansion of '(& self)->frozen::unordered_map<unsigned int, unsigned int, 2>::lookup<int, frozen::elsa<unsigned int> >((* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_map.h:219:23:   in 'constexpr' expansion of 'frozen::unordered_map<unsigned int, unsigned int, 2>::lookup_impl<const frozen::unordered_map<unsigned int, unsigned int, 2>&, int, frozen::elsa<unsigned int> >((*(const frozen::unordered_map<unsigned int, unsigned int, 2>*)this), (* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_map.h:214:43:   in 'constexpr' expansion of 'self.frozen::unordered_map<unsigned int, unsigned int, 2>::tables_.frozen::bits::pmh_tables<4, frozen::elsa<unsigned int> >::lookup<int, frozen::elsa<unsigned int> >((* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_map.cpp:181:28:   in 'constexpr' expansion of 'frozen::bits::seed_or_index()'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_map.cpp:181:28: error: modification of 'ce' is not a constant expression
:info:build [ 96%] Building CXX object tests/CMakeFiles/frozen.tests.dir/test_unordered_str_set.cpp.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/build/tests && /opt/local/bin/g++-mp-12  -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include -pipe -Os -std=c++14 -DNDEBUG -I/opt/local/include -D_GLIBCXX_USE_CXX11_ABI=0 -std=gnu++20 -arch ppc -mmacosx-version-min=10.6 -Wall -Wextra -Wpedantic -Werror -Wshadow -MD -MT tests/CMakeFiles/frozen.tests.dir/test_unordered_str_set.cpp.o -MF CMakeFiles/frozen.tests.dir/test_unordered_str_set.cpp.o.d -o CMakeFiles/frozen.tests.dir/test_unordered_str_set.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_str_set.cpp
:info:build make[2]: *** [tests/CMakeFiles/frozen.tests.dir/test_unordered_map.cpp.o] Error 1
:info:build make[2]: *** Waiting for unfinished jobs....
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp: In function 'void C_A_T_C_H_T_E_S_T_0()':
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp:23:40:   in 'constexpr' expansion of 'ze_set.frozen::unordered_set<int, 1>::count<int>(3)'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_set.h:113:17:   in 'constexpr' expansion of '((const frozen::unordered_set<int, 1>*)this)->frozen::unordered_set<int, 1>::count<int, frozen::elsa<int>, std::equal_to<int> >((* & key), (* &((const frozen::unordered_set<int, 1>*)this)->frozen::unordered_set<int, 1>::hash_function()), (* &((const frozen::unordered_set<int, 1>*)this)->frozen::unordered_set<int, 1>::key_eq()))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_set.h:108:26:   in 'constexpr' expansion of '((const frozen::unordered_set<int, 1>*)this)->frozen::unordered_set<int, 1>::lookup<int, frozen::elsa<int> >((* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_set.h:154:32:   in 'constexpr' expansion of '((const frozen::unordered_set<int, 1>*)this)->frozen::unordered_set<int, 1>::tables_.frozen::bits::pmh_tables<2, frozen::elsa<int> >::lookup<int, frozen::elsa<int> >((* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp:23:42:   in 'constexpr' expansion of 'frozen::bits::seed_or_index()'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp:23:42: error: modification of 'ze_set' is not a constant expression
:info:build    23 |   constexpr auto nocount = ze_set.count(3);
:info:build       |                                          ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp: In function 'void C_A_T_C_H_T_E_S_T_2()':
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp:68:40:   in 'constexpr' expansion of 'ze_set.frozen::unordered_set<short unsigned int, 3>::count<int>(4)'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_set.h:113:17:   in 'constexpr' expansion of '((const frozen::unordered_set<short unsigned int, 3>*)this)->frozen::unordered_set<short unsigned int, 3>::count<int, frozen::elsa<short unsigned int>, std::equal_to<short unsigned int> >((* & key), (* &((const frozen::unordered_set<short unsigned int, 3>*)this)->frozen::unordered_set<short unsigned int, 3>::hash_function()), (* &((const frozen::unordered_set<short unsigned int, 3>*)this)->frozen::unordered_set<short unsigned int, 3>::key_eq()))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_set.h:108:26:   in 'constexpr' expansion of '((const frozen::unordered_set<short unsigned int, 3>*)this)->frozen::unordered_set<short unsigned int, 3>::lookup<int, frozen::elsa<short unsigned int> >((* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_set.h:154:32:   in 'constexpr' expansion of '((const frozen::unordered_set<short unsigned int, 3>*)this)->frozen::unordered_set<short unsigned int, 3>::tables_.frozen::bits::pmh_tables<8, frozen::elsa<short unsigned int> >::lookup<int, frozen::elsa<short unsigned int> >((* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp:68:42:   in 'constexpr' expansion of 'frozen::bits::seed_or_index()'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp:68:42: error: modification of 'ze_set' is not a constant expression
:info:build    68 |   constexpr auto nocount = ze_set.count(4);
:info:build       |                                          ^
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp: In function 'void C_A_T_C_H_T_E_S_T_11()':
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp:159:17: error: non-constant condition for static assertion
:info:build   159 |   static_assert(!ce.count(0), "");
:info:build       |                 ^~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp:159:26:   in 'constexpr' expansion of 'ce.frozen::unordered_set<unsigned int, 2>::count<int>(0)'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_set.h:113:17:   in 'constexpr' expansion of '((const frozen::unordered_set<unsigned int, 2>*)this)->frozen::unordered_set<unsigned int, 2>::count<int, frozen::elsa<unsigned int>, std::equal_to<unsigned int> >((* & key), (* &((const frozen::unordered_set<unsigned int, 2>*)this)->frozen::unordered_set<unsigned int, 2>::hash_function()), (* &((const frozen::unordered_set<unsigned int, 2>*)this)->frozen::unordered_set<unsigned int, 2>::key_eq()))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_set.h:108:26:   in 'constexpr' expansion of '((const frozen::unordered_set<unsigned int, 2>*)this)->frozen::unordered_set<unsigned int, 2>::lookup<int, frozen::elsa<unsigned int> >((* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_set.h:154:32:   in 'constexpr' expansion of '((const frozen::unordered_set<unsigned int, 2>*)this)->frozen::unordered_set<unsigned int, 2>::tables_.frozen::bits::pmh_tables<4, frozen::elsa<unsigned int> >::lookup<int, frozen::elsa<unsigned int> >((* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp:159:17:   in 'constexpr' expansion of 'frozen::bits::seed_or_index()'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp:159:17: error: modification of 'ce' is not a constant expression
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp:160:28: error: non-constant condition for static assertion
:info:build   160 |   static_assert(ce.find(0) == ce.end(), "");
:info:build       |                 ~~~~~~~~~~~^~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp:160:24:   in 'constexpr' expansion of 'ce.frozen::unordered_set<unsigned int, 2>::find<int>(0)'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_set.h:126:16:   in 'constexpr' expansion of '((const frozen::unordered_set<unsigned int, 2>*)this)->frozen::unordered_set<unsigned int, 2>::find<int, frozen::elsa<unsigned int>, std::equal_to<unsigned int> >((* & key), (* &((const frozen::unordered_set<unsigned int, 2>*)this)->frozen::unordered_set<unsigned int, 2>::hash_function()), (* &((const frozen::unordered_set<unsigned int, 2>*)this)->frozen::unordered_set<unsigned int, 2>::key_eq()))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_set.h:118:27:   in 'constexpr' expansion of '((const frozen::unordered_set<unsigned int, 2>*)this)->frozen::unordered_set<unsigned int, 2>::lookup<int, frozen::elsa<unsigned int> >((* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/include/frozen/unordered_set.h:154:32:   in 'constexpr' expansion of '((const frozen::unordered_set<unsigned int, 2>*)this)->frozen::unordered_set<unsigned int, 2>::tables_.frozen::bits::pmh_tables<4, frozen::elsa<unsigned int> >::lookup<int, frozen::elsa<unsigned int> >((* & key), (* & hash))'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp:160:28:   in 'constexpr' expansion of 'frozen::bits::seed_or_index()'
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/frozen-1.1.1/tests/test_unordered_set.cpp:160:28: error: modification of 'ce' is not a constant expression
:info:build make[2]: *** [tests/CMakeFiles/frozen.tests.dir/test_unordered_set.cpp.o] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/build'
:info:build make[1]: *** [tests/CMakeFiles/frozen.tests.dir/all] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_frozen/frozen/work/build'
:info:build make: *** [all] Error 2
@serge-sans-paille
Copy link
Owner

Mmmh, the backtrace line/column number don't match those from the top-of-tree commit, could you rebase on master branch and share the new backtrace? thanks.

@Apteryks
Copy link

I had the same problem using the latest 1.1.1 release and GCC 11. It seems to be fixed on the master branch already; a new release tag would be nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants