Skip to content
New issue

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

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

Already on GitHub? # to your account

Build failure gcc-15.0.1 no member named ‘operator()’ #596

Open
brunopostle opened this issue Jan 23, 2025 · 1 comment
Open

Build failure gcc-15.0.1 no member named ‘operator()’ #596

brunopostle opened this issue Jan 23, 2025 · 1 comment

Comments

@brunopostle
Copy link

I'm seeing this error building on fedora rawhide (vigra-build.log):

gcc-15.0.1
boost-1.83.0
numpy-2.2.1
python-3.13.1

In file included from /builddir/build/BUILD/vigra-1.11.2-build/vigra-1.11.2/include/vigra/adjacency_list_graph.hxx:49,
                 from /builddir/build/BUILD/vigra-1.11.2-build/vigra-1.11.2/include/vigra/graph_algorithms.hxx:56,
                 from /builddir/build/BUILD/vigra-1.11.2-build/vigra-1.11.2/include/vigra/skeleton.hxx:45,
                 from /builddir/build/BUILD/vigra-1.11.2-build/vigra-1.11.2/vigranumpy/src/core/accumulator-region-singleband.cxx:40:
/builddir/build/BUILD/vigra-1.11.2-build/vigra-1.11.2/include/vigra/random_access_set.hxx: In member function ‘vigra::RandomAccessSet<Key, Compare, Alloc>::const_iterator vigra::RandomAccessSet<Key, Compare, Alloc>::insert(const_iterator, const value_type&)’:
/builddir/build/BUILD/vigra-1.11.2-build/vigra-1.11.2/include/vigra/random_access_set.hxx:403:46: error: ‘class vigra::RandomAccessSet<Key, Compare, Alloc>’ has no member named ‘operator()’; did you mean ‘operator=’? [-Wtemplate-body]
  403 |    if((position == begin() || this->operator()(*(position-1),value))
      |                                              ^
      |                                              operator=
/builddir/build/BUILD/vigra-1.11.2-build/vigra-1.11.2/include/vigra/random_access_set.hxx:404:44: error: ‘class vigra::RandomAccessSet<Key, Compare, Alloc>’ has no member named ‘operator()’; did you mean ‘operator=’? [-Wtemplate-body]
  404 |    && (position == end() || this->operator()(value, *position))) {
      |                                            ^
      |                                            operator=
@brunopostle
Copy link
Author

Workaround for gcc-15 seems to be to build with -Wno-template-body

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

No branches or pull requests

1 participant