Bug 17143 – [REG2.072.0] Declaration is already defined on global enum = tuple(...).expand declaration

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-02-04T11:45:00Z
Last change time
2017-02-24T20:34:34Z
Keywords
CTFE, rejects-valid
Assigned to
adrian
Creator
adrian

Comments

Comment #0 by adrian — 2017-02-04T11:45:04Z
// 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)
Comment #1 by github-bugzilla — 2017-02-04T17:30:06Z
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
Comment #2 by github-bugzilla — 2017-02-11T20:50:37Z
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
Comment #3 by github-bugzilla — 2017-02-24T20:34:34Z
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