Debian Package rebuild

Rebuild of the Debian archive with clang

"nodiscard attribute cannot be applied to types" build failure(s)
clang 5.0
Return to the list
clang generates an error, g++ generates a simple warning.
int a [[]];
int & [[nodiscard]] b = a;
$ clang++ -std=c++11 -c foo.cpp
foo.cpp:2:9: error: 'nodiscard' attribute cannot be applied to types
int & [[nodiscard]] b = a;
        ^
1 error generated.

$ g++ -std=c++11 -c foo.cpp
foo.cpp:2:20: warning: attribute ignored [-Wattributes]
 int & [[nodiscard]] b = a;
                    ^
foo.cpp:2:20: note: an attribute that appertains to a type-specifier is ignored

This is impacting mostly Qt based packages.
Reported upstream
Versions: 2.9 - 3.0 - 3.1 - 3.2 - 3.3 - 3.4 - 3.4.2 - 3.5.0 - 3.6.0 - 3.8.1 - 3.9.1 - 4.0.1 - 5.0
PackageVersionSupposed error messageFull log Bug report
analitza 4:16.08.3-1expression.h:119:39: error: 'nodiscard' attribute cannot be applied to types Log
ark 4:16.08.3-2klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
baloo-kf5 5.28.0-2klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
blinken 4:16.08.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
cervisia 4:16.08.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
debconf-kde 1.0.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
dragon 4:16.08.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
filelight 4:16.08.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
heaptrack 1.0.1~20170503.git4da8c45-3klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
k4dirstat 3.1.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kactivitymanagerd 5.8.4-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kaffeine 2.0.5-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kamera 4:16.08.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kapptemplate 4:16.08.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kbruch 4:16.08.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kcalc 4:16.08.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kcharselect 4:16.08.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kcolorchooser 4:16.08.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kconfigwidgets 5.28.0-2klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kcontacts 16.04.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kcron 4:16.08.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kdb 3.0.2-1KDbSqlResult.h:52:43: error: 'nodiscard' attribute cannot be applied to types Log
kde-config-systemd 1.2.1-3klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kdebugsettings 16.08.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kdeclarative 5.28.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kdelibs4support 5.28.0-2klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kdenetwork-filesharing 4:16.08.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kdenlive 17.04.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kdesdk-thumbnailers 4:16.08.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kdesignerplugin 5.28.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kdesu 5.28.0-2klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kdesvn 2.0.0-3klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kexi 1:3.0.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kfilemetadata-kf5 5.28.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kgeography 4:16.08.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
khelpcenter 4:16.08.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
ki18n 5.28.0-2klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kiconthemes 5.28.0-2klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kinit 5.28.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kio 5.28.0-2klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kiten 4:16.08.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kjsembed 5.28.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kldap 16.04.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kmime 16.04.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
knewstuff 5.28.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
knotifyconfig 5.28.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kompare 4:16.08.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kontactinterface 16.04.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
konversation 1.7.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kpackage 5.28.1-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kpeople 5.28.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kpmcore 3.1.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kpty 5.28.0-2klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kreport 3.0.2-1KReportData.h:119:62: error: 'nodiscard' attribute cannot be applied to types Log
krfb 4:16.08.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
krita 1:3.2.0+dfsg-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kronometer 2.1.5-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kross 5.28.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kruler 4:16.08.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
krusader 2:2.6.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kscreen 4:5.8.5-2klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kservice 5.28.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
ksshaskpass 4:5.8.4-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
ksystemlog 4:16.08.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kteatime 4:16.08.1-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
ktexteditor 5.28.0-2klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
ktextwidgets 5.28.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
ktimer 4:16.08.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kunitconversion 5.28.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kup-backup 0.6.1+dfsg-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kwallet-kf5 5.28.0-3klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kwave 0.9.2-1-2klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kwrited 4:5.8.4-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kxmlgui 5.28.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
kxmlrpcclient 5.28.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
libkeduvocdocument 4:16.08.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
libkf5grantleetheme 16.04.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
libkf5kgeomap 16.08.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
libkf5kmahjongg 16.08.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
libkf5libkleo 4:16.04.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
libkf5sane 16.08.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
libkomparediff2 4:16.08.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
lokalize 4:16.08.3-3klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
massif-visualizer 0.6~git20161031-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
partitionmanager 3.0.0-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
plasma-integration 5.8.6-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
polkit-kde-agent-1 4:5.8.4-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
rsibreak 4:0.12.7-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
sddm-kcm 4:5.8.4-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
skanlite 2.0.1-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
subtitlecomposer 0.6.4-2klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
umbrello 4:16.08.3-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
yakuake 3.0.2-1klocalizedstring.h:164:30: error: 'nodiscard' attribute cannot be applied to types Log
93 errors
Return to the list