tkoenig@gcc188:~/cvise-build> c++ --version
c++ (GCC) 13.0.0 20230105 (experimental) [master r13-4915-g9b111debbfb]
Copyright (C) 2023 Free Software Foundation, Inc.
tkoenig@gcc188:~> cc --version
cc (GCC) 13.0.0 20230105 (experimental) [master r13-4915-g9b111debbfb]
Copyright (C) 2023 Free Software Foundation, Inc.
(so I finally got that right).
Error message is
[ 53%] Building CXX object clang_delta/CMakeFiles/clang_delta.dir/RemoveUnresolvedBase.cpp.o
/home/tkoenig/cvise/clang_delta/RemoveNestedFunction.cpp: In member function »void RemoveNestedFunction::getVarStrForTemplateSpecialization(std::string&, const clang::TemplateSpecializationType*)«:
/home/tkoenig/cvise/clang_delta/RemoveNestedFunction.cpp:200:29: Fehler: possibly dangling reference to a temporary [-Werror=dangling-reference]
200 | const TemplateArgument &Arg = TST->template_arguments()[I];
| ^~~
/home/tkoenig/cvise/clang_delta/RemoveNestedFunction.cpp:200:62: Anmerkung: the temporary was destroyed at the end of the full expression »TST->clang::TemplateSpecializationType::template_arguments().llvm::ArrayRef<clang::TemplateArgument>::operator[](((size_t)I))«
200 | const TemplateArgument &Arg = TST->template_arguments()[I];
(so I finally got that right).
Error message is
Here is the cache:
CMakeCache.txt