llvm-project/clang/test
Elizabeth Andrews 878a24ee24 Reapply "Fix crash on switch conditions of non-integer types in templates"
This patch reapplies commit 759948467e. Patch was reverted due to a
clang-tidy test fail on Windows. The test has been modified. There
are no additional code changes.

Patch was tested with ninja check-all on Windows and Linux.

Summary of code changes:

Clang currently crashes for switch statements inside a template when the
condition is a non-integer field member because contextual implicit
conversion is skipped when parsing the condition. This conversion is
however later checked in an assert when the case statement is handled.
The conversion is skipped when parsing the condition because
the field member is set as type-dependent based on its containing class.
This patch sets the type dependency based on the field's type instead.

This patch fixes Bug 40982.
2019-12-03 15:27:19 -08:00
..
ARCMT
AST Switch to opening the temp file in binary mode 2019-12-03 15:31:46 -05:00
ASTMerge [clang] Make handling of unnamed template params similar to function params 2019-10-01 14:08:51 +00:00
Analysis [analyzer] Add custom filter functions for GenericTaintChecker 2019-11-23 20:12:15 +01:00
CXX [Diagnostics] Try to improve warning message for -Wreturn-type 2019-11-09 17:54:58 +01:00
ClangScanDeps [clang-scan-deps] do not skip empty #if/#elif in the minimizer to avoid missing `__has_include` dependencies 2019-12-02 18:47:22 -08:00
CodeCompletion [clangd] Show lambda signature for lambda autocompletions 2019-11-22 12:48:06 +01:00
CodeGen [clang][CodeGen] Make use of cc1 instead of clang in the tests 2019-12-03 12:02:26 +01:00
CodeGenCUDA clang: Add -fconvergent-functions flag 2019-11-19 23:20:15 +05:30
CodeGenCXX [MS] Emit exported complete/vbase destructors 2019-12-03 14:46:32 -08:00
CodeGenCoroutines
CodeGenObjC Debug info: Emit objc_direct methods as members of their containing class 2019-11-21 11:01:10 -08:00
CodeGenObjCXX Revert "Revert "As a follow-up to my initial mail to llvm-dev here's a first pass at the O1 described there."" 2019-11-26 20:28:52 -08:00
CodeGenOpenCL [OpenCL] Fix mangling of single-overload builtins 2019-12-03 11:09:16 +00:00
CodeGenOpenCLCXX [OpenCL] Fix address space for implicit conversion (PR43145) 2019-12-02 14:20:15 +00:00
Coverage
CoverageMapping [Coverage] Emit a gap region to cover switch bodies 2019-12-03 12:35:54 -08:00
Driver [Support] Add ProcName to TimeTraceProfiler 2019-12-03 13:04:27 +00:00
FixIt
Format [clang-format] Proposal for clang-format to give compiler style warnings 2019-10-13 14:51:45 +00:00
Frontend [Sema] Add MacroQualified case for FunctionTypeUnwrapper 2019-11-12 16:22:13 -08:00
Headers [X86] Fix the implementation of __readcr3/__writecr3 to work in 64-bit mode 2019-11-14 13:21:36 -08:00
Import [ASTImporter] Add support for BuiltinTemplateDecl 2019-10-30 14:53:35 +01:00
Index [Diagnostic] add a warning which warns about misleading indentation 2019-12-03 21:21:27 +01:00
Integration
InterfaceStubs [clang][IFS] Driver Pipeline: generate stubs after standard pipeline (3) 2019-11-20 16:22:50 -05:00
Layout
Lexer Revert "Revert "As a follow-up to my initial mail to llvm-dev here's a first pass at the O1 described there."" 2019-11-26 20:28:52 -08:00
Misc [Diagnostic] add a warning which warns about misleading indentation 2019-12-03 21:21:27 +01:00
Modules [clang][modules] Add support for merging lifetime-extended temporaries 2019-12-02 19:55:13 +01:00
OpenMP [OPENMP]Fix PR44133: Emit definitions of used constructors/functions. 2019-12-02 14:07:29 -05:00
PCH Revert "Revert "As a follow-up to my initial mail to llvm-dev here's a first pass at the O1 described there."" 2019-11-26 20:28:52 -08:00
Parser [Diagnostic] add a warning which warns about misleading indentation 2019-12-03 21:21:27 +01:00
Preprocessor [Diagnostic] add a warning which warns about misleading indentation 2019-12-03 21:21:27 +01:00
Profile Update clang tests for new LLVM IR backslash printing in r374415 2019-10-10 18:36:41 +00:00
Refactor
Rewriter
Sema Revert "[ARM] Allocatable Global Register Variables for ARM" 2019-11-29 17:01:05 +00:00
SemaCUDA [CUDA][HIP} Add a test for constexpr default ctor 2019-10-11 02:43:28 +00:00
SemaCXX Reapply "Fix crash on switch conditions of non-integer types in templates" 2019-12-03 15:27:19 -08:00
SemaObjC [Sema] Fix a -Wobjc-signed-char-bool false-positive 2019-11-18 12:15:20 -08:00
SemaObjCXX [ObjC] Diagnose implicit type coercion from ObjC 'Class' to object 2019-10-17 15:27:04 +00:00
SemaOpenCL [OpenCL] Move addr space deduction to Sema. 2019-11-27 12:44:42 +00:00
SemaOpenCLCXX [OpenCL] Use generic addr space for lambda call operator 2019-12-03 16:07:18 +00:00
SemaSYCL [SYCL] Add sycl_kernel attribute for accelerated code outlining 2019-12-03 16:13:22 +03:00
SemaTemplate Reapply "Fix crash on switch conditions of non-integer types in templates" 2019-12-03 15:27:19 -08:00
TableGen
Templight
Tooling Prefer 'env not' over 'not env' in tests. 2019-10-14 01:41:56 +00:00
Unit
VFS Improve VFS compatibility on Windows 2019-11-14 08:48:47 -08:00
clang-rename [clang-rename] Fix a crash when renaming a class without definition. 2019-10-04 14:09:31 +00:00
.clang-format
CMakeLists.txt [gen_ast_dump_json_test.py] Copy to binary directory to omit --clang argument 2019-11-15 12:52:56 +00:00
TestRunner.sh
cxx-sections.data
lit.cfg.py Revert "[analyzer] Add test directory for scan-build." 2019-11-05 14:03:36 -08:00
lit.site.cfg.py.in
make_test_dirs.pl