[PATCH] D133289: [C2X] N3007 Type inference for object definitions
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 14 05:41:18 PDT 2022
aaron.ballman added a comment.
In D133289#3788655 <https://reviews.llvm.org/D133289#3788655>, @to268 wrote:
> In D133289#3784042 <https://reviews.llvm.org/D133289#3784042>, @aaron.ballman wrote:
>
>> auto auto k = 12; // 99% this is intended to be accepted; first `auto` is the storage class specifier, second `auto` is a redundant storage class specifier
>
> It seems that specifying `auto` twice isn't supported at the time being, so i think i should fix that too.
>
> auto auto test = 12; // error: cannot combine with previous 'auto' declaration specifier
Yup! I just learned yesterday that the error there is correct and intended, at least according to the author of WG N3007.
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