Bug 2336265

Summary: TeXmacs fails to build with GCC 15 ("error: 'class hashtree<K, V>' has no member named 'contains' [-Wtemplate-body]")
Product: [Fedora] Fedora Reporter: Dave Malcolm <dmalcolm>
Component: TeXmacsAssignee: Orion Poplawski <orion>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: rawhideCC: jnovy, orion
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-19 03:56:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2333037    

Description Dave Malcolm 2025-01-07 22:46:46 UTC
I'm experimentally rebuilding rawhide with the not-yet-released GCC 15 to see if anything breaks, and to help write the porting guide.  See https://fedoraproject.org/wiki/User:Dmalcolm/gcc-15

My test build with GCC 15 failed:
https://copr.fedorainfracloud.org/coprs/dmalcolm/gcc-15-smoketest-3.failed/build/8476054/

whereas my test build with GCC 14 succeeded:
https://copr.fedorainfracloud.org/coprs/dmalcolm/gcc-15-smoketest-3.failed.checker/build/8477609/

Looking at the failure logs e.g.
https://download.copr.fedorainfracloud.org/results/dmalcolm/gcc-15-smoketest-3.failed/fedora-rawhide-x86_64/08476054-TeXmacs/builder-live.log.gz

I see:

In file included from /builddir/build/BUILD/TeXmacs-2.1.2-build/TeXmacs-2.1.2-src/src/Kernel/Containers/hashtree.hpp:126,
                 from /builddir/build/BUILD/TeXmacs-2.1.2-build/TeXmacs-2.1.2-src/src/Data/String/converter.hpp:15:
/builddir/build/BUILD/TeXmacs-2.1.2-build/TeXmacs-2.1.2-src/src/Kernel/Containers/hashtree.cpp: In member function 'hashtree<K, V> hashtree<K, V>::operator[](K)':
/builddir/build/BUILD/TeXmacs-2.1.2-build/TeXmacs-2.1.2-src/src/Kernel/Containers/hashtree.cpp:97:14: error: 'class hashtree<K, V>' has no member named 'contains' [-Wtemplate-body]
   97 |   if (*this->contains (key)) return *this->children (key);
      |              ^~~~~~~~
/builddir/build/BUILD/TeXmacs-2.1.2-build/TeXmacs-2.1.2-src/src/Kernel/Containers/hashtree.cpp:97:44: error: 'class hashtree<K, V>' has no member named 'children' [-Wtemplate-body]
   97 |   if (*this->contains (key)) return *this->children (key);
      |                                            ^~~~~~~~
gmake[2]: *** [src/CMakeFiles/texmacs_body.dir/build.make:130: src/CMakeFiles/texmacs_body.dir/Data/Convert/Coq/parse_vernac.cpp.o] Error 1

Looks like another instance of https://fedoraproject.org/wiki/User:Dmalcolm/gcc-15#C++:_error_with_-Wtemplate-body


Reproducible: Always

Comment 1 Orion Poplawski 2025-02-19 03:56:34 UTC

*** This bug has been marked as a duplicate of bug 2339866 ***