[Bug c++/100596] [12 Regression] error: attribute appertains to a friend declaration that is not a definition since r12-786-g149061188c7c6ddf

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 14 14:13:42 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100596

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
I noticed that in a couple of packages that I have in my testing playground:
https://build.opensuse.org/project/monitor/home:marxin:home:marxin:gcc-periodic-testing-v2

[ 1268s]
/home/abuild/rpmbuild/BUILD/libreoffice-7.1.3.2/workdir/UnpackedTarball/skia/include/core/SkMatrix.h:1579:24:
error: attribute appertains to a friend declaration that is not a definition
[ 1268s]  1579 |     friend SK_API bool operator==(const SkMatrix& a, const
SkMatrix& b);
[ 1268s]       |                        ^~~~~~~~


[   98s] /usr/include/boost/thread/detail/thread.hpp:641:37: error: attribute
appertains to a friend declaration that is not a definition
[   98s]   641 |         friend id BOOST_THREAD_DECL this_thread::get_id()
BOOST_NOEXCEPT;
[   98s]       |                                     ^~~~~~~~~~~


[  279s] /usr/include/qt5/QtCore/qbytearray.h:486:37: error: attribute
appertains to a friend declaration that is not a definition
[  279s]   486 |     friend Q_CORE_EXPORT QByteArray qUncompress(const uchar
*data, int nbytes);
[  279s]       |                                     ^~~~~~~~~~~


More information about the Gcc-bugs mailing list