[PATCH] D95145: [clang] Fix a nullptr dereference bug on invalid code

2021-01-25 Thread Adam Czachorowski via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGd462aa5a619a: [clang] Fix a nullptr dereference bug on invalid code (authored by adamcz). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D95145/new/ https://r

[PATCH] D95145: [clang] Fix a nullptr dereference bug on invalid code

2021-01-25 Thread Haojian Wu via Phabricator via cfe-commits
hokein accepted this revision. hokein added a comment. This revision is now accepted and ready to land. Thanks. Comment at: clang/test/SemaCXX/subst-func-type-invalid-ret-type.cpp:2 +// RUN: %clang -fsyntax-only -std=c++17 %s -Xclang -verify +#include + adamcz

[PATCH] D95145: [clang] Fix a nullptr dereference bug on invalid code

2021-01-22 Thread Adam Czachorowski via Phabricator via cfe-commits
adamcz added a comment. PTAL Comment at: clang/test/SemaCXX/subst-func-type-invalid-ret-type.cpp:2 +// RUN: %clang -fsyntax-only -std=c++17 %s -Xclang -verify +#include + adamcz wrote: > hokein wrote: > > A common practice is to avoid depending on STL in tests

[PATCH] D95145: [clang] Fix a nullptr dereference bug on invalid code

2021-01-22 Thread Adam Czachorowski via Phabricator via cfe-commits
adamcz updated this revision to Diff 318534. adamcz added a comment. addressed review comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D95145/new/ https://reviews.llvm.org/D95145 Files: clang/lib/Sema/SemaTemplateInstantiateDecl.cpp clang

[PATCH] D95145: [clang] Fix a nullptr dereference bug on invalid code

2021-01-22 Thread Adam Czachorowski via Phabricator via cfe-commits
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 + hokein wrote: > A common practice is to avoid depending on STL in tests. I think we need t

[PATCH] D95145: [clang] Fix a nullptr dereference bug on invalid code

2021-01-21 Thread Haojian Wu via Phabricator via cfe-commits
hokein 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 + A common practice is to avoid depending on STL in tests. I think we need to pull out (eve

[PATCH] D95145: [clang] Fix a nullptr dereference bug on invalid code

2021-01-21 Thread Adam Czachorowski via Phabricator via cfe-commits
adamcz created this revision. adamcz added a reviewer: hokein. adamcz requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. When working with invalid code, we would try to dereference a nullptr while deducing template arguments in some dependend