[clazy] [Bug 425822] New: 1.7 version does not compile with LLVM/clang-11.x
Tomasz Paweł Gajc
bugzilla_noreply at kde.org
Wed Aug 26 10:15:59 BST 2020
https://bugs.kde.org/show_bug.cgi?id=425822
Bug ID: 425822
Summary: 1.7 version does not compile with LLVM/clang-11.x
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: tpgxyz at gmail.com
CC: smartins at kde.org
Target Milestone: ---
SUMMARY
1.7 version does not compile with LLVM/clang-11.x
STEPS TO REPRODUCE
1. set LLVM/clang-11.x as default compiler
2. try to compile clazy-1.7
3. observe error
OBSERVED RESULT
Full logs can be found here https://abf.openmandriva.org/build_lists/817596
[1/107] Building CXX object
CMakeFiles/ClazyPlugin.dir/src/checks/manuallevel/tr-non-literal.cpp.o
FAILED: CMakeFiles/ClazyPlugin.dir/src/checks/manuallevel/tr-non-literal.cpp.o
/usr/bin/clang++ -DCLAZY_DISABLE_AST_MATCHERS -DClazyPlugin_EXPORTS
-DHAVE_CLANG_CONFIG_H -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS
-D__STDC_LIMIT_MACROS -I. -I../ -I../src -Os -fomit-frame-pointer -g1
-Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2
-fstack-protector-all --param=ssp-buffer-size=4 -m64 -mtune=generic -std=c++11
-fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic
-Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -fno-exceptions
-fno-rtti -fPIC -Os -fomit-frame-pointer -g1 -Wstrict-aliasing=2 -pipe -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector-all
--param=ssp-buffer-size=4 -m64 -mtune=generic -MD -MT
CMakeFiles/ClazyPlugin.dir/src/checks/manuallevel/tr-non-literal.cpp.o -MF
CMakeFiles/ClazyPlugin.dir/src/checks/manuallevel/tr-non-literal.cpp.o.d -o
CMakeFiles/ClazyPlugin.dir/src/checks/manuallevel/tr-non-literal.cpp.o -c
../src/checks/manuallevel/tr-non-literal.cpp
In file included from ../src/checks/manuallevel/tr-non-literal.cpp:23:
In file included from ../src/checks/manuallevel/tr-non-literal.h:26:
In file included from ../src/checkbase.h:28:
In file included from ../src/clazy_stl.h:26:
In file included from /usr/include/clang/AST/Stmt.h:16:
In file included from /usr/include/clang/AST/DeclGroup.h:16:
In file included from /usr/include/llvm/Support/TrailingObjects.h:50:
In file included from /usr/include/llvm/Support/Alignment.h:24:
In file included from /usr/include/llvm/ADT/Optional.h:20:
/usr/include/llvm/Support/type_traits.h:31:28: error: no template named
'remove_reference_t' in namespace 'std'; did you mean 'remove_reference'?
using UnderlyingT = std::remove_reference_t<T>;
~~~~~^
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.2.0/../../../../include/c++/10.2.0/type_traits:1593:12:
note: 'remove_reference' declared here
struct remove_reference
^
EXPECTED RESULT
No errors
SOFTWARE/OS VERSIONS
Windows:
macOS:
Linux/KDE Plasma: OpenMandriva Lx Cooker
(available in About System)
KDE Plasma Version: 5.19.4
KDE Frameworks Version: 5.73
Qt Version: 5.15.0
ADDITIONAL INFORMATION
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list