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.
Comment #2 by k.hara.pg — 2013-08-20T21:15:50Z
Comment #3 by bearophile_hugs — 2013-08-21T11:46:17Z
*** Issue 10865 has been marked as a duplicate of this issue. ***
Comment #4 by github-bugzilla — 2013-08-27T13:16:33Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/23a3fa83022e1b8e4d291ffb43e225ad9c8895aa fix Issue 10836 - 'errors compiling the function' for optimized builds https://github.com/D-Programming-Language/dmd/commit/01d22e4f3b2a6c07dabc0307eb4ee6b066ae27dd Merge pull request #2488 from 9rnsr/fix10836 [REG2.064a] Issue 10836 - 'errors compiling the function' for optimized builds
Comment #5 by andrej.mitrovich — 2013-08-27T19:05:04Z
*** Issue 10891 has been marked as a duplicate of this issue. ***