Bug 1742 – CTFE fails on some template functions

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-12-18T14:32:00Z
Last change time
2014-02-24T15:33:37Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
sean

Comments

Comment #0 by sean — 2007-12-18T14:32:19Z
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() { }
Comment #1 by bugzilla — 2008-01-02T19:47:15Z
Fixed dmd 1.025 and 2.009