Bug 24706 – Missing errors for first operand of comma expression

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2024-08-16T11:09:04Z
Last change time
2024-08-17T09:05:58Z
Keywords
pull
Assigned to
No Owner
Creator
Nick Treleaven

Comments

Comment #0 by nick — 2024-08-16T11:09:04Z
import core.attribute; @mustuse struct S {} S fun(); void test() { int x; fun(); // ignored value of @mustuse type S fun(), x++; // no error x++, x; // `x` has no effect x, x++; // no error } PR incoming.
Comment #1 by dlang-bot — 2024-08-16T11:25:57Z
@ntrel created dlang/dmd pull request #16787 "Fix Bugzilla 24706 - Missing errors for first operand of comma expres…" fixing this issue: - Fix Bugzilla 24706 - Missing errors for first operand of comma expression https://github.com/dlang/dmd/pull/16787
Comment #2 by dlang-bot — 2024-08-17T09:05:58Z
dlang/dmd pull request #16787 "Fix Bugzilla 24706 - Missing errors for first operand of comma expres…" was merged into master: - 15ce89747626481f4da391e3900c43cd6ed6d9dc by Nick Treleaven: Fix Bugzilla 24706 - Missing errors for first operand of comma expression https://github.com/dlang/dmd/pull/16787