diff options
author | Kaelyn Uhrain <rikka@google.com> | 2011-10-11 17:17:40 +0000 |
---|---|---|
committer | Kaelyn Uhrain <rikka@google.com> | 2011-10-11 17:17:40 +0000 |
commit | 257e17f9b61614a43d6317dcb5ba0801564f25b7 (patch) | |
tree | 6353c088fd14831889fb05b69f8854da609b7187 | |
parent | c800f68f8e61007a6dc5dc8213629fb423e76cd9 (diff) |
Add an explanatory comment to test/SemaCXX/typo-correction.cpp
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141680 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/SemaCXX/typo-correction.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/SemaCXX/typo-correction.cpp b/test/SemaCXX/typo-correction.cpp index adf317b8b9..fa32c57fc7 100644 --- a/test/SemaCXX/typo-correction.cpp +++ b/test/SemaCXX/typo-correction.cpp @@ -15,8 +15,14 @@ public: : _val_(_val) {} template <class E> - error_condition(E _e) - {*this = make_error_condition(_e);} + error_condition(E _e) { + // make_error_condition must not be typo corrected to error_condition + // even though the first declaration of make_error_condition has not + // yet been encountered. This was a bug in the first version of the type + // name typo correction patch that wasn't noticed until building LLVM with + // Clang failed. + *this = make_error_condition(_e); + } }; |