Debian Package rebuild

Rebuild of the Debian archive with clang

"nodiscard attribute cannot be applied to types" build failure(s)
clang 3.3
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 - 6.0 - 8.0.1 - 9.0.1 - 10.0.0 - 11.0.0 - 12.0.1 - 13.0.0
No error detect for version 3.3
0 errors
Return to the list