[Issue 1963] -H creates broken headers

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 23 00:48:34 PDT 2008


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





------- Comment #7 from lindevel at gmx.net  2008-06-23 02:48 -------
Created an attachment (id=259)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=259&action=view)
algorithm.d

Persists in 2.0.15, though in slightly different form.

To make this easier to check, you should include the version number of dmd
which created the header file. Because of the recent Makefile changes, my fixes
to bug #1940 did not apply anymore, which resulted in the system dmd being used
to create the headers...


Compiling this sample:
---
import std.stdio;

void main(string[] args)
{
        writefln("Hello world!");
}
---

Creates this output:

/opt/dmd/include/phobos/std/stdio.d(368): found 'bool' when expecting ';'
following 'statement'
/opt/dmd/include/phobos/std/string.d(101): no identifier for declarator
manifest
/opt/dmd/include/phobos/std/string.d(101): semicolon expected, not 'dchar'
/opt/dmd/include/phobos/std/string.d(102): no identifier for declarator
manifest
/opt/dmd/include/phobos/std/string.d(102): semicolon expected, not 'dchar'
/opt/dmd/include/phobos/std/algorithm.d(86): no identifier for declarator
manifest
/opt/dmd/include/phobos/std/algorithm.d(86): semicolon expected, not 'uint'
/opt/dmd/include/phobos/std/algorithm.d(736): found '!=' when expecting ')'
/opt/dmd/include/phobos/std/algorithm.d(736): found ')' when expecting ';'
following 'statement'
/opt/dmd/include/phobos/std/algorithm.d(748): found 'else' instead of statement
/opt/dmd/include/phobos/std/algorithm.d(755): Declaration expected, not 'else'
/opt/dmd/include/phobos/std/algorithm.d(760): unrecognized declaration
/opt/dmd/include/phobos/std/c/stdlib.d(63): no identifier for declarator
manifest
/opt/dmd/include/phobos/std/c/stdlib.d(63): semicolon expected, not 'int'
/opt/dmd/include/phobos/std/c/stdlib.d(63): Error: identifier 'manifest' is not
defined
/opt/dmd/include/phobos/std/c/stdlib.d(63): Error: manifest is used as a type
/opt/dmd/include/phobos/std/c/stdlib.d(63): variable voids have no value
/opt/dmd/include/phobos/std/encoding.d(57): no identifier for declarator
manifest
/opt/dmd/include/phobos/std/encoding.d(57): semicolon expected, not 'dchar'
/opt/dmd/include/phobos/std/traits.d(607): no identifier for declarator
manifest
/opt/dmd/include/phobos/std/traits.d(607): semicolon expected, not 'byte'


-- 



More information about the Digitalmars-d-bugs mailing list