On Friday, 10 August 2018 at 10:24:55 UTC, Simen Kjærås wrote:
On Friday, 10 August 2018 at 08:31:21 UTC, learnfirst1 wrote:
The correct behavior would be for the compiler to show the latter error message for a mixin'd function as well.

Filed a bug:


I think the static extern(C) nested function should just work like global extern(C) function. DMD still report missing symbols. Or I am wrong about this ?

template G(){
    static extern(C) pragma(crt_constructor) void init(){}
void main(){
    mixin G!(); // Line 5

Reply via email to