diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-01-07 06:00:46 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-01-07 06:00:46 +0000 |
commit | 8ce732b46f5570d21f0e92ea783387b2e5a3b846 (patch) | |
tree | 3cf8aefe6223556ba47b2d07890d3bce1301252f /clang/www | |
parent | 1ac0839098029ce987ce89f0a8c3faf380e50bd1 (diff) |
DR674, PR38883, PR40238: Qualified friend lookup should look for a
template specialization if there is no matching non-template function.
This exposed a couple of related bugs:
- we would sometimes substitute into a friend template instead of a
suitable non-friend declaration; this would now crash because we'd
decide the specialization of the friend is a redeclaration of itself
- ADL failed to properly handle the case where an invisible local
extern declaration redeclares an invisible friend
Both are fixed herein: in particular, we now never make invisible
friends or local extern declarations visible to name lookup unless
they are the only declaration of the entity. (We already mostly did
this for local extern declarations.)
llvm-svn: 350505
Diffstat (limited to 'clang/www')
-rwxr-xr-x | clang/www/cxx_dr_status.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/www/cxx_dr_status.html b/clang/www/cxx_dr_status.html index 460978260f18..b3165c7f17fa 100755 --- a/clang/www/cxx_dr_status.html +++ b/clang/www/cxx_dr_status.html @@ -4087,7 +4087,7 @@ and <I>POD class</I></td> <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#674">674</a></td> <td>C++11</td> <td>“matching specialization” for a friend declaration</td> - <td class="none" align="center">No</td> + <td class="svn" align="center">SVN</td> </tr> <tr id="675"> <td><a href="http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#675">675</a></td> |