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.



I've run into a problem with code using ctRegex that fails to compile only in release build.

Can't reproduce:

$ cat sample.d
    import std.regex;
    static immutable TOC_LINE_PATTERN =
    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.


Reply via email to