forked from OSchip/llvm-project
[libcxx] [test] Don't ask whether Incomplete& can be assigned to.
This is the subject of an active NB comment. Regardless of what the Working Paper currently says, asking this question is morally wrong, because the answer can change when the type is completed. C1XX now detects such precondition violations and complains about them; perhaps Clang should too. Fixes D28591. llvm-svn: 292281
This commit is contained in:
parent
e2c9ad9483
commit
6d184d1fb1
|
@ -82,5 +82,4 @@ int main()
|
|||
|
||||
// pointer to incomplete template type
|
||||
test_is_assignable<X<D>*&, X<D>*> ();
|
||||
test_is_not_assignable<Incomplete&, Incomplete const&>();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue