Bug 1927 – dmd SEGV when passing invalid symbol as parameter
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2008-03-17T19:21:00Z
Last change time
2015-06-09T01:14:36Z
Keywords
ice-on-invalid-code
Assigned to
bugzilla
Creator
webmaster
Comments
Comment #0 by webmaster — 2008-03-17T19:21:14Z
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.
Comment #1 by clugdbug — 2009-04-02T15:07:18Z
Like 1897, this works for me on Windows, DMD 1.042 and 2.027. Probably fixed.