[Issue 1742] New: CTFE fails on some template functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 18 12:32:20 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1742
Summary: CTFE fails on some template functions
Product: D
Version: 1.024
Platform: PC
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: sean at f4.ca
Compiling with version=Good works but compiling with version=Bad fails. Both
should compile.
version( Good )
{
size_t find(Elem)( Elem[] buf, Elem pat )
{
return 0;
}
}
else version( Bad )
{
size_t find(Buf, Pat)( Buf buf, Pat pat )
{
return 0;
}
}
const pos = find( "abcdefg", 'c' );
void main()
{
}
--
More information about the Digitalmars-d-bugs
mailing list