зеркало из https://github.com/microsoft/clang-1.git
Remove FIXME: as Eli points out, the behavior here is now correct.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151405 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
a98a28534e
Коммит
61dab36ccb
|
@ -116,15 +116,13 @@ namespace NullPtr {
|
|||
int &k = f(m); // a null pointer constant
|
||||
} ();
|
||||
|
||||
// FIXME: At least the second of these cases should probably not be
|
||||
// considered to be a null pointer constant.
|
||||
[=] () -> bool {
|
||||
int &k = f(m); // a null pointer constant?
|
||||
return &m == 0; // no, captured!
|
||||
int &k = f(m); // a null pointer constant
|
||||
return &m == 0;
|
||||
} ();
|
||||
|
||||
[m] {
|
||||
int &k = f(m); // a null pointer constant?
|
||||
int &k = f(m); // a null pointer constant
|
||||
} ();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче