[Issue 1963] -H creates broken headers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 11 08:52:18 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1963


chris at dprogramming.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chris at dprogramming.com
           Keywords|                            |rejects-valid




------- Comment #2 from chris at dprogramming.com  2008-04-11 10:52 -------
Small example of -H producing broken output, DMD 1.028:

template Foo(bool bar)
{
        void test()
        {
                static if(bar)
                { // Note the empty block.
                }
                else
                {
                }
        }
}

// -H output:

// D import file generated from 'H.d'
template Foo(bool bar)
{
void test()
{
static if(bar)
else

}
}


-- 



More information about the Digitalmars-d-bugs mailing list