]> granicus.if.org Git - clang/commit
Fix a crash bug when comparing overload quality of conversion operators with conversi...
authorSebastian Redl <sebastian.redl@getdesigned.at>
Thu, 16 Apr 2009 17:51:27 +0000 (17:51 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Thu, 16 Apr 2009 17:51:27 +0000 (17:51 +0000)
commit3201f6beec688ab9fe8750527e28f52d5420e22d
treeee806d81273e190e494239c9db4b4b57fafc24e4
parentba79fc2d1b742e34df104aadb2780725c2a882fc
Fix a crash bug when comparing overload quality of conversion operators with conversion constructors.
Remove an atrocious amount of trailing whitespace in the overloaded operator mangler. Sorry, couldn't help myself.
Change the DeclType parameter of Sema::CheckReferenceInit to be passed by value instead of reference. It wasn't changed anywhere.
Let the parser handle C++'s irregular grammar around assignment-expression and conditional-expression.
And finally, the reason for all this stuff: implement C++ semantics for the conditional operator. The implementation is complete except for determining lvalueness.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69299 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/clang/Basic/DiagnosticSemaKinds.td
include/clang/Basic/OperatorKinds.def
lib/CodeGen/Mangle.cpp
lib/Parse/ParseExpr.cpp
lib/Sema/Sema.h
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaExprCXX.cpp
lib/Sema/SemaOverload.cpp
lib/Sema/SemaOverload.h
test/SemaCXX/conditional-expr.cpp [new file with mode: 0644]
test/SemaCXX/conversion-function.cpp