Bug 10836 – 'errors compiling the function' for optimized builds
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-08-17T07:48:00Z
Last change time
2013-08-27T19:05:04Z
Keywords
ice, pull, rejects-valid
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2013-08-17T07:48:03Z
This could be a regression.
import std.stdio, std.array;
void main() {}
Compiling it with dmd 2.064alpha with:
dmd -O -release -inline -noboundscheck
It gives me:
...\dmd2\windows\bin\..\..\src\phobos\std\array.d: Error: function std.array.Appender!(const(wchar)[]).Appender.Data.__xopEquals errors compiling the function
While this program:
import std.array;
void main() {}
Gives me:
...\dmd2\windows\bin\..\..\src\phobos\std\uni.d(3547): Error: function std.uni.TrieBuilder!(ubyte, dchar, 1114112, sliceBits!(13u, 21u), sliceBits!(6u, 13u), sliceBits!(0u, 6u)).TrieBuilder.putAt errors compiling the function
Comment #1 by joseph.wakeling — 2013-08-20T03:00:41Z
I have also experienced the latter error today with a fresh install of dmd.
Without the -noboundscheck flag, the error doesn't occur.