Don't diagnose a redeclaration of a deduction guide if the prior
authorRichard Smith <richard@metafoo.co.uk>
Fri, 12 Jun 2020 17:27:48 +0000 (10:27 -0700)
committerRichard Smith <richard@metafoo.co.uk>
Fri, 12 Jun 2020 17:29:01 +0000 (10:29 -0700)
commitc32d261e27c8c63653799fa6e411c373bd81d519
treee47494d8af4318646d6692e15a6427a20d9184e1
parenta0226f9bffa4c879ec7f8183738205661978cc39
Don't diagnose a redeclaration of a deduction guide if the prior
declaration is not visible.

In passing, add a test for a similar case of conflicting redeclarations
of internal-linkage structured bindings. (This case already works).
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/Modules/Inputs/cxx17/module.modulemap
clang/test/Modules/Inputs/cxx17/unimported.h [new file with mode: 0644]
clang/test/Modules/Inputs/cxx20/decls.h [new file with mode: 0644]
clang/test/Modules/Inputs/cxx20/module.modulemap [new file with mode: 0644]
clang/test/Modules/Inputs/cxx20/unimported.h [new file with mode: 0644]
clang/test/Modules/cxx17.cpp
clang/test/Modules/cxx20.cpp [new file with mode: 0644]