C++ compiler diagnostic gone horribly wrong: error: explicit specialization in non-namespace scope
C++ compiler diagnostic gone horribly wrong: error: explicit specialization in non-namespace scope
Here is a g++ error message that took me an embarrassingly long time to figure out: In file included from /home/llvm-project/llvm/lib/IR/Constants.cpp:15: /home/llvm-project/llvm/lib/IR/LLVMContextImpl.h:447:11: error: explicit specialization in non-namespace scope ‘struct llvm::MDNodeKeyImpl<llvm::DIBasicType>’ template <> struct MDNodeKeyImpl<DIStringType> { ^ This is the code: template <>…
View On WordPress










