[PATCH] D95145: [clang] Fix a nullptr dereference bug on invalid code
Adam Czachorowski via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 22 06:13:37 PST 2021
adamcz added inline comments.
================
Comment at: clang/test/SemaCXX/subst-func-type-invalid-ret-type.cpp:2
+// RUN: %clang -fsyntax-only -std=c++17 %s -Xclang -verify
+#include <type_traits>
+
----------------
hokein wrote:
> A common practice is to avoid depending on STL in tests. I think we need to pull out (even simplify?) std::result_of implementation if it is needed for reproducing the crash.
I've noticed that pattern, but can't tell why this is. Is it documented somewhere?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95145/new/
https://reviews.llvm.org/D95145
More information about the cfe-commits
mailing list