diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-03-09 08:16:22 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-03-09 08:16:22 +0000 |
commit | a9e88b2549add9766382c70d270dfd89fa33f7cf (patch) | |
tree | 2d7c68a5977102668476eea511922a1571ca6539 /lib/Sema/SemaOverload.cpp | |
parent | 36f5cfe4df32af6c5fe01228102512996f566f9d (diff) |
Literal operators can't have default arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152394 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaOverload.cpp')
-rw-r--r-- | lib/Sema/SemaOverload.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/Sema/SemaOverload.cpp b/lib/Sema/SemaOverload.cpp index e74e6d5e12..fac3b7f383 100644 --- a/lib/Sema/SemaOverload.cpp +++ b/lib/Sema/SemaOverload.cpp @@ -10911,13 +10911,6 @@ ExprResult Sema::BuildLiteralOperatorCall(LookupResult &R, bool HadMultipleCandidates = (CandidateSet.size() > 1); - // FIXME: Reject default arguments in literal operator definitions. We're not - // supposed to treat this as ambiguous: - // - // int operator"" _x(const char *p); - // int operator"" _x(const char *p, size_t n = 0); - // int k = 123_x; - // Perform overload resolution. This will usually be trivial, but might need // to perform substitutions for a literal operator template. OverloadCandidateSet::iterator Best; |