Bug 16529 – string mixins break ifti

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-09-23T16:28:31Z
Last change time
2024-12-13T18:50:16Z
Assigned to
No Owner
Creator
John Colvin
Moved to GitHub: dmd#19195 →

Comments

Comment #0 by john.loughran.colvin — 2016-09-23T16:28:31Z
template foo(T) { mixin(`void foo(T t) {}`); } template bar(T) { void bar(T t) {} } void main() { foo(3); // fails // ifti.d(13): Error: template ifti.foo cannot deduce function from argument types !()(int), candidates are: // ifti.d(1): ifti.foo(T) bar(3); // OK }
Comment #1 by robert.schadek — 2024-12-13T18:50:16Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19195 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB