www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: smjg 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
---------


-- 
Nov 16 2006
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=536


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME





Doesn't crash with dmd 1.021 or 2.004.


-- 
Oct 02 2007