www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10836] New: 'errors compiling the function' for optimized builds

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10836

           Summary: 'errors compiling the function' for optimized builds
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: bearophile_hugs eml.cc


--- Comment #0 from bearophile_hugs eml.cc 2013-08-17 07:48:03 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 17 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10836


Joseph Rushton Wakeling <joseph.wakeling webdrake.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |joseph.wakeling webdrake.ne
                   |                            |t


--- Comment #1 from Joseph Rushton Wakeling <joseph.wakeling webdrake.net>
2013-08-20 03:00:41 PDT ---
I have also experienced the latter error today with a fresh install of dmd.

Without the -noboundscheck flag, the error doesn't occur.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 20 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10836


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull, rejects-valid


--- Comment #2 from Kenji Hara <k.hara.pg gmail.com> 2013-08-20 21:15:50 PDT ---
https://github.com/D-Programming-Language/dmd/pull/2488

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 20 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10836


bearophile_hugs eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zan77137 nifty.com


--- Comment #3 from bearophile_hugs eml.cc 2013-08-21 11:46:17 PDT ---
*** Issue 10865 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 21 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10836



--- Comment #4 from github-bugzilla puremagic.com 2013-08-27 13:16:33 PDT ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 27 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10836


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla digitalmars.com
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 27 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10836


Andrej Mitrovic <andrej.mitrovich gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thelastmammoth gmail.com


--- Comment #5 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2013-08-27
19:05:04 PDT ---
*** Issue 10891 has been marked as a duplicate of this issue. ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Aug 27 2013