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
}