Release D 2.072.0

Soulsbane via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Thu Nov 10 15:02:09 PST 2016


On Thursday, 10 November 2016 at 15:38:08 UTC, Dicebot wrote:
> On 11/05/2016 06:04 AM, Soulsbane wrote:
>> On Monday, 31 October 2016 at 01:27:08 UTC, Martin Nowak wrote:
>>> Glad to announce D 2.072.0.
>>>
>>> http://dlang.org/changelog/2.072.0.html
>>>
>>> -Martin
>> 
>> I've run into a problem with code using ctRegex that fails to 
>> compile only in release build.
>
> Can't reproduce:
>
> $ cat sample.d
> unittest
> {
>     import std.regex;
>     static immutable TOC_LINE_PATTERN =
> `#{1,}\s*(?P<key>.*):\s*(?P<value>.*)`;
>     auto linePattern = ctRegex!(TOC_LINE_PATTERN);
> }
>
> $ dmd-dev -release -O -inline -unittest -main -run sample.d
>
> Can you provide more details?

Sorry I hadn't gotten back on this. Isolating the code like you 
did doesn't produce the error. It only fails in my larger 
project(same code). It's strange.

The code is in 
https://github.com/Soulsbane/luaaddon/blob/master/source/luaaddon/tocparser.d

Using struct TocParser in an empty project(just main) works just 
fine. But as part of my later project(skeletor) it fails to 
compile.

Thanks.


More information about the Digitalmars-d-announce mailing list