[Issue 953] Multiple C style declarations of same type cannot be in one statement
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jul 10 16:10:03 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=953
Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |WORKSFORME
--- Comment #8 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
(In reply to Matti Niemenmaa from comment #0)
> int foo[2], bar[2];
>
> The above fails with the error message "multiple declarations must have the
> same type, not int[2] and int[2]" which makes no sense. int[2] is the same
> type as int[2].
Fixed by https://github.com/dlang/dmd/pull/4021. Now it prints:
test.d(1): Deprecation: instead of C-style syntax, use D-style syntax 'int[2]
foo'
test.d(1): Deprecation: instead of C-style syntax, use D-style syntax 'int[2]
bar'
--
More information about the Digitalmars-d-bugs
mailing list