Bug 10998 – [REG 2.063] compile-time postblit call check is incorrectly suppressed.

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-08T23:00:00Z
Last change time
2013-09-09T14:11:02Z
Keywords
diagnostic, pull
Assigned to
nobody
Creator
k.hara.pg

Comments

Comment #0 by k.hara.pg — 2013-09-08T23:00:39Z
DMD 2.063 does not print any error message at line 10. // from dmd test suite fail_compilation/fail340.d --- struct CopyTest { double x; this(double a) { x = a * 10.0;} this(this) { x += 2.0; } } const CopyTest z = CopyTest(5.3); const CopyTest w = z; // line 10 static assert(w.x == 55.0); --- Output: dmd2.062: test.d(10): Error: variable test.w of type struct const(CopyTest) uses this(this), which is not allowed in static initialization dmd2.063: (no error message)
Comment #1 by k.hara.pg — 2013-09-08T23:30:28Z
Comment #2 by github-bugzilla — 2013-09-09T14:08:28Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/d647bb0825f55ac1119ab6390f35c44bd574afb6 fix Issue 10998 - compile-time postblit call check is incorrectly suppressed In the pull request #1801, I had forgot to remove the *ungag* code. That was caused the incorrect gagging regression. https://github.com/D-Programming-Language/dmd/commit/86f860b2fb8e216895853bee159f18328e6b7889 Merge pull request #2541 from 9rnsr/fix10980 Issue 10998 (REG 2.063) & Issue Issue 10980 - fix for compile-time postblit call check