// The following code compiled successfully up to 2.071.2: import std.typecons : tuple; enum foo = tuple(1, 2).expand; pragma(msg, typeof(foo).stringof); pragma(msg, foo.stringof); // Result up to 2.071.2: // (int, int) // tuple(1, 2) // From 2.072.0 on: // tup.d(2): Error: declaration tup.__tup1846 is already defined // tup.d(3): while evaluating pragma(msg, (_error_).stringof) // tup.d(4): while evaluating pragma(msg, foo.stringof)
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/555a9a1f5e105b6e815b0a54218de04e36289e38 Fix Issue 17143 - [REG2.072.0] Declaration is already defined on global enum = tuple(...).expand declaration Regression was introduced in 53a70e4d66b8bf1b96a51c06eeb2df7fa836f647 https://github.com/dlang/dmd/commit/093a53aa46e41da58525cc556e071c1ae3d46c84 Merge pull request #6517 from epi/fix-17143 Fix Issue 17143 - [REG2.072.0] Declaration is already defined on global enum = tuple(...).expand declaration
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/555a9a1f5e105b6e815b0a54218de04e36289e38 Fix Issue 17143 - [REG2.072.0] Declaration is already defined on global enum = tuple(...).expand declaration https://github.com/dlang/dmd/commit/093a53aa46e41da58525cc556e071c1ae3d46c84 Merge pull request #6517 from epi/fix-17143
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/555a9a1f5e105b6e815b0a54218de04e36289e38 Fix Issue 17143 - [REG2.072.0] Declaration is already defined on global enum = tuple(...).expand declaration https://github.com/dlang/dmd/commit/093a53aa46e41da58525cc556e071c1ae3d46c84 Merge pull request #6517 from epi/fix-17143