[Issue 536] New: Assertion failure: template.c 2735 - trying to instantiate an undefined template with the same name as the module

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 16 16:51:21 PST 2006


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

           Summary: Assertion failure: template.c 2735 - trying to
                    instantiate an undefined template with the same name as
                    the module
           Product: D
           Version: 0.174
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: smjg at iname.com


---------
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
---------


-- 




More information about the Digitalmars-d-bugs mailing list