Thread overview
[Issue 3743] Forward reference problem with static if statements
May 22, 2014
Adam Wilson
May 22, 2014
Adam Wilson
May 22, 2014
Adam Wilson
May 01, 2015
Joakim
May 22, 2014
https://issues.dlang.org/show_bug.cgi?id=3743

Adam Wilson <flyboynw@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |flyboynw@gmail.com
            Version|D1                          |D2
           Severity|normal                      |major

--
May 22, 2014
https://issues.dlang.org/show_bug.cgi?id=3743

Adam Wilson <flyboynw@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |adam.chrapkowski@gmail.com,
                   |                            |digitalmars-d-bugs@puremagi
                   |                            |c.com, nobody@puremagic.com

--
May 22, 2014
https://issues.dlang.org/show_bug.cgi?id=3743

--- Comment #1 from Adam Wilson <flyboynw@gmail.com> ---
Updating this bug. Note that this effects Aurora Graphics.

The following will produce an 'undefined identifier' error in struct DWRITE_GLYPH_RUN on IDWriteFontFace

static if(DX110)
{
public struct DWRITE_GLYPH_RUN {
    IDWriteFontFace fontFace; //Error: Undefined Identifier
    //...
}
}
static if(DX111) { //...}
static if(DX112) { //...}

static if(DX110)
{
public interface IDWriteFontFace : IUnknown
{
    HRESULT GetDesignGlyphMetrics(const(uint*) Indices, uint Count,
DWRITE_GLYPH_METRICS*
    //...
}
}
static if(DX111) { //...}
static if(DX112) { //...}

--
May 01, 2015
https://issues.dlang.org/show_bug.cgi?id=3743

--- Comment #2 from Joakim <dbugz@joakim.fea.st> ---
I think I ran into this issue when I tried to import core.sys.posix.sys.types.off_t in core.stdc.stdio, for use in the fpos_t definition on linux.  Commenting out the "static if" block around off_t fixed the issue, so it's definitely related to "static if" somehow.

--
December 13
https://issues.dlang.org/show_bug.cgi?id=3743

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18151

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--