Bug 11119 – Alias declaration cannot see forward-referenced symbol in mixed-in template

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-24T15:45:22Z
Last change time
2024-12-13T18:12:02Z
Keywords
rejects-valid
Assigned to
No Owner
Creator
Andrej Mitrovic
Blocks
340
See also
https://issues.dlang.org/show_bug.cgi?id=1170
Moved to GitHub: dmd#17614 →

Comments

Comment #0 by andrej.mitrovich — 2013-09-24T15:45:22Z
----- module test; struct K { mixin templ; alias a = foo; // ok } struct F { alias a = foo; // fail mixin templ; } mixin template templ() { void foo() { } } void main() { } ----- $ dmd test.d test.d(11): Error: undefined identifier foo It does not appear to be a regression, but it might be a duplicate of some other bug (?).
Comment #1 by robert.schadek — 2024-12-13T18:12:02Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17614 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB