[Issue 2962] ICE(glue.c) or bad codegen passing variable as template value parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 14 12:55:04 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2962
--- Comment #12 from Lars T. Kyllingstad <bugzilla at kyllingen.net> 2009-08-14 12:55:04 PDT ---
What I find very strange here is that when I compile my test case with DMD
2.031 specifying just the four attached files, it works. And it should -- I
think the code is valid according to the spec of both D1 and D2.
lars at neutrino:~/tmp/bug2962$ dmd moduleA.d moduleB.d moduleC.d moduleD.d
lars at neutrino:~/tmp/bug2962$ ./moduleA
1
However, when I compile it like rdmd does, specifying every module in Phobos on
the command line, it fails:
lars at neutrino:~/tmp/bug2962$ dmd 'moduleA.d' 'moduleC.d'
'/usr/local/include/d/druntime/core/sys/posix/config.d'
'/usr/local/include/d/druntime/core/stdc/stdio.d'
'/usr/local/include/d/druntime/core/sys/posix/fcntl.d' [...]
dmd: glue.c:658: virtual void FuncDeclaration::toObjFile(int): Assertion
`!v->csym' failed.
(Run rdmd with --dry-run to see the full list of files it passes to DMD.)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list