[PATCH] D133289: [C2X] N3007 Type inference for object definitions
Thorsten via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 1 07:13:27 PST 2023
tschuett added a comment.
In D133289#4096588 <https://reviews.llvm.org/D133289#4096588>, @aaron.ballman wrote:
> In D133289#4037180 <https://reviews.llvm.org/D133289#4037180>, @tschuett wrote:
>
>> It surprised me that there are no type inference messages? The type of this auto is double. I only found warnings of misuse of auto and codegen tests.
>
> Can you give a code example of what you expected to see a diagnostic for but aren't getting one?
This is probably only for testing and not for Clang users:
auto Float = 3.0; // note that Float is a float
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133289/new/
https://reviews.llvm.org/D133289
More information about the cfe-commits
mailing list