www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1927] New: dmd SEGV when passing invalid symbol as parameter

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1927

           Summary: dmd SEGV when passing invalid symbol as parameter
           Product: D
           Version: 2.012
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: webmaster villagersonline.com


NOTE: This has some similarities to 1897, but seems different to me, so I
posted a new bug for this one.

dmd 2.012, Linux (Fedora Core 6 x86_64)

The following code will cause dmd to SEGV:

BEGIN CODE
void foo(char c, TPL...)() {}

void bar()
{ 
  foo!('[', baz, ']')();
}
END CODE

Note that dmd runs just fine if "baz" is changed to a valid symbol.


-- 
Mar 17 2008
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1927






Like 1897, this works for me on Windows, DMD 1.042 and 2.027. Probably fixed.


-- 
Apr 02 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1927


clugdbug yahoo.com.au changed:

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




-- 
Apr 07 2009