D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 10470 - Linkage (extern) ignored in alias declaration
Summary: Linkage (extern) ignored in alias declaration
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords:
: 11379 (view as issue list)
Depends on:
Blocks:
 
Reported: 2013-06-25 01:41 UTC by Temtaime
Modified: 2024-12-13 18:08 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Temtaime 2013-06-25 01:41:20 UTC
http://dpaste.1azy.net/9c18092d
Comment 1 David 2013-06-25 01:48:56 UTC
Code:

import std.stdio;

extern(Windows) void foo();
void bar();

void main() {
	alias typeof(foo) F;
	alias extern(Windows) typeof(bar) B;
	
	writeln(F.stringof);
	writeln(B.stringof); // expected result as foo gives
}


Output:

extern (Windows) void()
void()


(Taken 1:1 from dpaste)
Comment 2 yebblies 2013-11-21 03:33:17 UTC
*** Issue 11379 has been marked as a duplicate of this issue. ***
Comment 3 dlangBugzillaToGithub 2024-12-13 18:08:32 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/18616

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB