Bug 15252 – [REG 2.069.0-rc1] Compilation error in std.uni
Status
RESOLVED
Resolution
DUPLICATE
Severity
regression
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-10-27T18:18:00Z
Last change time
2015-10-30T15:28:18Z
Assigned to
nobody
Creator
briancschott
Comments
Comment #0 by briancschott — 2015-10-27T18:18:05Z
While trying to compile DCD with 2.069.0-rc1 I get the following error:
Error: cannot cast ["L", "Letter", "LC", "Cased Letter", "M", "Mark", "N", "Number", "P", "Punctuation", "S", "Symbol", "Z", "Separator", "Graphical", "any", "ascii"][1..17] to void at compile time
/home/brian/.dvm/compilers/dmd-2.069.0-rc1/linux/bin/../../src/phobos/std/uni.d(5966): called from here: find(names)
/home/brian/.dvm/compilers/dmd-2.069.0-rc1/linux/bin/../../src/phobos/std/uni.d(6154): called from here: isPrettyPropertyName(name)
/home/brian/.dvm/compilers/dmd-2.069.0-rc1/linux/bin/../../src/phobos/std/uni.d(6032): called from here: findAny("Alphabetic")
/home/brian/.dvm/compilers/dmd-2.069.0-rc1/linux/bin/../../src/phobos/std/uni.d(6035): Error: static assert "No unicode set by name Alphabetic was found."
/home/brian/.dvm/compilers/dmd-2.069.0-rc1/linux/bin/../../src/phobos/std/regex/internal/ir.d-mixin-50(50): instantiated from here: opDispatch!"Alphabetic"
/home/brian/.dvm/compilers/dmd-2.069.0-rc1/linux/bin/../../src/phobos/std/regex/internal/ir.d(65): instantiated from here: memoizeExpr!"unicode.Alphabetic | unicode.Mn | unicode.Mc\x0a | unicode.Me | unicode.Nd | unicode.Pc"
Comment #1 by briancschott — 2015-10-27T18:21:49Z
Given the common "cannot cast ... to void at compile time" error message, this may be a duplicate of 15251.