Bug 11239 – [REG2.064beta] ctRegex causes link errors with -debug since Pull2550

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-12T20:50:00Z
Last change time
2013-10-27T00:24:12Z
Keywords
link-failure
Assigned to
nobody
Creator
kekeniro2

Comments

Comment #0 by kekeniro2 — 2013-10-12T20:50:17Z
DMD 2.064 beta doesn't compile the following code. 2.063.2 does. Pull #2550 introduces this problem. COMMAND: dmd.exe test.d -debug -g CODE: void main() { // auto re = regex(`\w`); // OK enum ctre = regex(`\w`); // NG } OUTPUT: Error 42: Symbol Undefined _D3std6random123__T7uniformVAyaa2_5b29TiTykT ... ( followed by unprintable characters ) Error 42: Symbol Undefined _D3std9algorithm13__T3minTkTykZ3minFNaNbNfkykZk # the second error will be omitted if compiled without -g.
Comment #1 by kekeniro2 — 2013-10-12T21:03:02Z
Sorry, I forgot the import declaration. CODE(MODIFIED): import std.regex; // @@@ void main() { // auto re = regex(`\w`); // OK enum ctre = regex(`\w`); // NG }
Comment #2 by bugzilla — 2013-10-13T16:11:33Z
Comment #3 by github-bugzilla — 2013-10-26T19:59:25Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/4d5f5fd4d975a1eda386d3baa1ecf2c847a8bdb2 fix Issue 11239 - [REG2.064beta] ctRegex causes link errors with -debug since Pull2550 https://github.com/D-Programming-Language/dmd/commit/acc0cb07e2cc72c344cd73e068e5100a8be8df12 Merge pull request #2661 from WalterBright/fix11239 fix Issue 11239 - [REG2.064beta] ctRegex causes link errors with -debug since Pull2550
Comment #4 by github-bugzilla — 2013-10-27T00:23:34Z
Commit pushed to 2.064 at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/7e607df53d4bcb4c0f9dce8828083f3aa4997d0b Merge pull request #2661 from WalterBright/fix11239 fix Issue 11239 - [REG2.064beta] ctRegex causes link errors with -debug since Pull2550