llvm-project/clang/lib/Sema
Chandler Carruth 935384217d Teach the allocation function overload handling to deal with templates, and
prevent a crash on templates when looking for an existing declaration of the
predefined global operators. This fixes PR5918.

Added an easy test case for the overload handling, but testing the crash is
a bit trickier. Created a new test that can use multiple runs with a define to
trigger which test case is used so we can test this type of issue.

llvm-svn: 95220
2010-02-03 11:02:14 +00:00
..
CMakeLists.txt Try to make cmake happy 2010-01-10 13:06:34 +00:00
CXXFieldCollector.h Unifies the name-lookup mechanisms used in various parts of the AST 2008-12-11 16:49:14 +00:00
CodeCompleteConsumer.cpp Eliminate cursor kinds used to express definitions. Instead, provide 2010-01-19 19:34:47 +00:00
IdentifierResolver.cpp Eliminate dead code. 2010-01-02 21:44:36 +00:00
IdentifierResolver.h Eliminate dead code. 2010-01-02 21:44:36 +00:00
JumpDiagnostics.cpp Silence some warnings produced by Clang, and add a missing header 2009-11-17 06:14:37 +00:00
Lookup.h Handle redeclarations found by ADL deterministically and reasonably. 2010-01-26 07:16:45 +00:00
Makefile -fno-rtti is now the default. 2010-01-24 20:43:31 +00:00
ParseAST.cpp Add {ExternalSemaSource,SemaConsumer}::ForgetSema callback, and update PCHReader 2009-12-01 21:57:20 +00:00
Sema.cpp Add a stop gap to Sema::CorrectTypo() to correct only up to 20 typos. 2010-02-02 02:07:01 +00:00
Sema.h Implement the lvalue-to-rvalue conversion where needed. The 2010-02-03 00:27:59 +00:00
SemaAccess.cpp Mark dtors for parameter variables and eliminate some redundant type munging. 2010-02-02 09:10:11 +00:00
SemaAttr.cpp Rip out the last remaining implicit use of OverloadedFunctionDecl in Sema: 2009-12-02 08:25:40 +00:00
SemaCXXCast.cpp Implement the lvalue-to-rvalue conversion where needed. The 2010-02-03 00:27:59 +00:00
SemaCXXScopeSpec.cpp Teach Sema::ActOnDependentTemplateName that a dependent template name 2010-01-19 16:01:07 +00:00
SemaChecking.cpp Mark dtors for parameter variables and eliminate some redundant type munging. 2010-02-02 09:10:11 +00:00
SemaCodeComplete.cpp Implement the lvalue-to-rvalue conversion where needed. The 2010-02-03 00:27:59 +00:00
SemaDecl.cpp Don't do an expensive definition check where a cheap 'is this C?' check suffices. 2010-02-03 02:08:48 +00:00
SemaDeclAttr.cpp Implement access-check delays for out-of-line member definitions 2010-01-27 03:50:35 +00:00
SemaDeclCXX.cpp Mark dtors for parameter variables and eliminate some redundant type munging. 2010-02-02 09:10:11 +00:00
SemaDeclObjC.cpp Patch to implement rewriting of properties. 2010-01-21 17:36:00 +00:00
SemaExceptionSpec.cpp Implement C++ DR437, which involves exception-specifications that name 2009-12-10 18:13:52 +00:00
SemaExpr.cpp Implement the lvalue-to-rvalue conversion where needed. The 2010-02-03 00:27:59 +00:00
SemaExprCXX.cpp Teach the allocation function overload handling to deal with templates, and 2010-02-03 11:02:14 +00:00
SemaExprObjC.cpp Numerous changes to selector handling: 2010-02-03 02:09:30 +00:00
SemaInit.cpp Fix this comment. 2010-02-02 19:02:38 +00:00
SemaInit.h Access checking for implicit user-defined conversions. 2010-02-01 03:16:54 +00:00
SemaLookup.cpp Add a stop gap to Sema::CorrectTypo() to correct only up to 20 typos. 2010-02-02 02:07:01 +00:00
SemaOverload.cpp Implement promotion for enumeration types. 2010-02-02 20:10:50 +00:00
SemaOverload.h Note that an overload candidate was non-viable because template argument 2010-02-01 18:53:26 +00:00
SemaStmt.cpp Implement Doug's suggestion. Eliminate the Stmts pointer from CXXTryStmt and instead allocate the statements after the object. 2010-02-03 03:56:39 +00:00
SemaTemplate.cpp Fix PR6149 by looking at the qualifiers on the referred to type for non-type 2010-02-03 09:37:33 +00:00
SemaTemplate.h Implement partial ordering of function template specializations 2009-09-14 18:39:43 +00:00
SemaTemplateDeduction.cpp Extract a common base class between UnresolvedLookupExpr and 2010-02-02 06:20:04 +00:00
SemaTemplateInstantiate.cpp Handle instantiation of templates with non-type arguments expressed with an 2010-01-31 07:09:11 +00:00
SemaTemplateInstantiateDecl.cpp Look through CXXExprWithTemporaries when digging out the original 2010-02-03 09:01:59 +00:00
SemaType.cpp Improve source-location information for builtin TypeLocs, from Enea 2010-01-18 18:04:31 +00:00
TargetAttributesSema.cpp Generalize target weirdness handling having proper layering in mind: 2010-01-10 12:58:08 +00:00
TargetAttributesSema.h Generalize target weirdness handling having proper layering in mind: 2010-01-10 12:58:08 +00:00
TreeTransform.h Provide a real fix for PR6199, reverting the old workaround. Here, we 2010-02-03 03:01:57 +00:00