GCC 15 now diagnoses failed lookups in non-instantiated templates since r15-2117-g313afcfdabeab3 [0]. This exposes broken latent code [0] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=r15-2117-g313afcfdabeab3. Reproducible: Always Steps to Reproduce: select gcc-15 emerge -va1 =dev-games/openscenegraph-3.6.5-r115 Actual Results: /var/tmp/portage/dev-games/openscenegraph-3.6.5-r115/work/OpenSceneGraph-OpenSceneGraph-3.6.5/include/osg/GLExtensions:140:9: note: because ‘osg::VertexAttribAlias’ has user-provided ‘osg::VertexAttribAlias::VertexAttribAlias(const osg::VertexAttribAlias&)’ 140 | VertexAttribAlias(const VertexAttribAlias& rhs): | ^~~~~~~~~~~~~~~~~ In file included from /usr/include/dcmtk/ofstd/ofmem.h:27, from /usr/include/dcmtk/oflog/appender.h:33, from /usr/include/dcmtk/oflog/spi/apndatch.h:33, from /usr/include/dcmtk/oflog/logger.h:36, from /usr/include/dcmtk/oflog/oflog.h:28, from /usr/include/dcmtk/dcmdata/dctypes.h:27, from /usr/include/dcmtk/dcmdata/dcxfer.h:26, from /usr/include/dcmtk/dcmdata/dcobject.h:32, from /usr/include/dcmtk/dcmdata/dcelem.h:28, from /usr/include/dcmtk/dcmdata/dcsequen.h:29, from /usr/include/dcmtk/dcmdata/dcfilefo.h:28, from /var/tmp/portage/dev-games/openscenegraph-3.6.5-r115/work/OpenSceneGraph-OpenSceneGraph-3.6.5/src/osgPlugins/dicom/ReaderWriterDICOM.cpp:27: /usr/include/dcmtk/ofstd/ofutil.h: In constructor ‘OFrvalue_storage<T, <anonymous> >::type::type(const OFrvalue_storage<T, <anonymous> >&)’: /usr/include/dcmtk/ofstd/ofutil.h:79:18: error: ‘const struct OFrvalue_storage<T, <anonymous> >’ has no member named ‘pt’ [-Wtemplate-body] 79 | : t( rhs.pt ) {} | ^~
Created attachment 900232 [details] build fail log
Created attachment 900233 [details] emerge--info