[PATCH] D110216: [clang] retain type sugar in auto / template argument deduction
Hans Wennborg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 16 11:06:05 PST 2021
hans added a comment.
We're seeing a diagnostic change in Chromium which looks funny. For the following code (span<> is our own class):
int WontCompile() {
const std::vector<int> v;
span<int> s = make_span(v);
}
the diagnostic changes from:
fatal error: no viable conversion from 'span<const int, [...]>' to 'span<int, [...]>
to
fatal error: no viable conversion from 'span<T, [...]>' to 'span<int, [...]>
This looks very strange.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110216/new/
https://reviews.llvm.org/D110216
More information about the cfe-commits
mailing list