Bug 536 – Assertion failure: template.c 2735 - trying to instantiate an undefined template with the same name as the module

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-11-16T18:51:00Z
Last change time
2014-02-15T13:22:15Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
smjg

Comments

Comment #0 by smjg — 2006-11-16T18:51:20Z
--------- int x = assert_template2735!(42); --------- D:\My Documents\Programming\D\Tests\bugs>dmd assert_template2735.d Assertion failure: 's->parent' on line 2735 in file 'template.c' abnormal program termination --------- This appears to happen only if "assert_template2735" is the fully qualified module name. If the module is put within a package, it behaves more sensibly: --------- module bugs.assert_template2735; int x = bugs.assert_template2735!(42); --------- D:\My Documents\Programming\D\Tests\bugs\assert_template2735.d(3): assert_template2735 is not a template ---------
Comment #1 by bugzilla — 2007-10-03T00:21:27Z
Doesn't crash with dmd 1.021 or 2.004.