Bug 13737 – Scope import do not work with function parameters in template.

Status
NEW
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-11-15T19:55:32Z
Last change time
2024-12-13T18:35:22Z
Assigned to
No Owner
Creator
Илья Ярошенко
Moved to GitHub: dmd#18914 →

Comments

Comment #0 by ilyayaroshenko — 2014-11-15T19:55:32Z
======= module M; struct B {} ======= template A() { import M; void A(B b){} } void foo() { import M : B; B b; A(b); } ======= test2155.d(4): Error: undefined identifier B
Comment #1 by github-bugzilla — 2014-11-15T21:01:32Z
Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/eec74c83a29ed6f4b8ca30527e18bf31e68f124e std.numeric: clean import & CustomFloat printing fix update toString template Issue 13737 new comment add brace
Comment #2 by github-bugzilla — 2015-02-18T03:39:53Z
Comment #3 by razvan.nitu1305 — 2018-06-11T12:21:14Z
Note that calling the templated function A!()(b) does work.
Comment #4 by boris2.9 — 2021-02-21T05:43:50Z
*** Issue 21411 has been marked as a duplicate of this issue. ***
Comment #5 by robert.schadek — 2024-12-13T18:35:22Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18914 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB