Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't compile anymore with dmd 2.068 #35

Closed
ghost opened this issue Aug 12, 2015 · 4 comments
Closed

Don't compile anymore with dmd 2.068 #35

ghost opened this issue Aug 12, 2015 · 4 comments

Comments

@ghost
Copy link

ghost commented Aug 12, 2015

compiling C:\...\projects\D-YAML.coedit
C:\Dev\metad\repos\D-YAML\source\dyaml\node.d(277): Error: safe function 'dyaml.node.Node.__ctor!string.this' cannot call system function 'std.variant.VariantN!(16u, YAMLNull, YAMLMerge, bool, long, real, ubyte[], SysTime, string, Pair[], Node[], YAMLObject).VariantN.__ctor!string.this'
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(320): Error: template instance dyaml.node.Node.__ctor!string error instantiating
C:\Dev\metad\repos\D-YAML\source\dyaml\composer.d(242):        instantiated from here: node!(string, immutable(ScalarStyle))
C:\Dev\metad\repos\D-YAML\source\dyaml\node.d(332): Error: safe function 'dyaml.node.Node.__ctor!(Node).this' cannot call system function 'std.variant.VariantN!(16u, YAMLNull, YAMLMerge, bool, long, real, ubyte[], SysTime, string, Pair[], Node[], YAMLObject).VariantN.__ctor!(Node[]).this'
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(320): Error: template instance dyaml.node.Node.__ctor!(Node) error instantiating
C:\Dev\metad\repos\D-YAML\source\dyaml\composer.d(269):        instantiated from here: node!(Node[], immutable(CollectionStyle))
C:\Dev\metad\repos\D-YAML\source\dyaml\node.d(1756): Error: safe function 'dyaml.node.Node.findPair!(string, cast(Flag)true).findPair' cannot call system function 'std.variant.VariantN!(16u, YAMLNull, YAMLMerge, bool, long, real, ubyte[], SysTime, string, Pair[], Node[], YAMLObject).VariantN.get!(const(Pair[])).get'
C:\Dev\metad\repos\D-YAML\source\dyaml\node.d(783): Error: template instance dyaml.node.Node.findPair!(string, cast(Flag)true) error instantiating
C:\Dev\metad\repos\D-YAML\source\dyaml\node.d(620):        instantiated from here: opIndex!string
C:\Dev\metad\repos\D-YAML\source\dyaml\node.d(1098):        instantiated from here: get!(Pair[], cast(Flag)true)
C:\Dev\metad\repos\D-YAML\source\dyaml\composer.d(310):        instantiated from here: opApply!(Node, Node)
C:\Dev\metad\repos\D-YAML\source\dyaml\node.d(1042): Error: template instance dyaml.node.Node.get!(Node[], cast(Flag)true) error instantiating
C:\Dev\metad\repos\D-YAML\source\dyaml\composer.d(330):        instantiated from here: opApply!(Node)
C:\Dev\metad\repos\D-YAML\source\dyaml\node.d(332): Error: safe function 'dyaml.node.Node.__ctor!(Pair).this' cannot call system function 'std.variant.VariantN!(16u, YAMLNull, YAMLMerge, bool, long, real, ubyte[], SysTime, string, Pair[], Node[], YAMLObject).VariantN.__ctor!(Pair[]).this'
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(320): Error: template instance dyaml.node.Node.__ctor!(Pair) error instantiating
C:\Dev\metad\repos\D-YAML\source\dyaml\composer.d(387):        instantiated from here: node!(Pair[], immutable(CollectionStyle))
C:\Dev\metad\repos\D-YAML\source\dyaml\node.d(1431): Error: safe function 'dyaml.node.Node.value!(YAMLNull).value' cannot call system function 'std.variant.VariantN!(16u, YAMLNull, YAMLMerge, bool, long, real, ubyte[], SysTime, string, Pair[], Node[], YAMLObject).VariantN.__ctor!(YAMLNull).this'
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(361): Error: template instance dyaml.node.Node.value!(YAMLNull) error instantiating
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(189):        instantiated from here: addConstructor!(YAMLNull)
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(88):        instantiated from here: addConstructorScalar!(YAMLNull)
C:\Dev\metad\repos\D-YAML\source\dyaml\node.d(1431): Error: safe function 'dyaml.node.Node.value!bool.value' cannot call system function 'std.variant.VariantN!(16u, YAMLNull, YAMLMerge, bool, long, real, ubyte[], SysTime, string, Pair[], Node[], YAMLObject).VariantN.__ctor!bool.this'
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(361): Error: template instance dyaml.node.Node.value!bool error instantiating
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(189):        instantiated from here: addConstructor!bool
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(89):        instantiated from here: addConstructorScalar!bool
C:\Dev\metad\repos\D-YAML\source\dyaml\node.d(1431): Error: safe function 'dyaml.node.Node.value!long.value' cannot call system function 'std.variant.VariantN!(16u, YAMLNull, YAMLMerge, bool, long, real, ubyte[], SysTime, string, Pair[], Node[], YAMLObject).VariantN.__ctor!long.this'
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(361): Error: template instance dyaml.node.Node.value!long error instantiating
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(189):        instantiated from here: addConstructor!long
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(90):        instantiated from here: addConstructorScalar!long
C:\Dev\metad\repos\D-YAML\source\dyaml\node.d(1431): Error: safe function 'dyaml.node.Node.value!real.value' cannot call system function 'std.variant.VariantN!(16u, YAMLNull, YAMLMerge, bool, long, real, ubyte[], SysTime, string, Pair[], Node[], YAMLObject).VariantN.__ctor!real.this'
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(361): Error: template instance dyaml.node.Node.value!real error instantiating
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(189):        instantiated from here: addConstructor!real
C:\Dev\metad\repos\D-YAML\source\dyaml\constructor.d(91):        instantiated from here: addConstructorScalar!real
C:\Dev\metad\repos\D-YAML\source\dyaml\node.d(1431): Error: safe function 'dyaml.node.Node.value!(ubyte[]).value' cannot call system function 'std.variant.VariantN!(16u, YAMLNull, YAMLMerge, bool, long, real, ubyte[], SysTime, string, Pair[], Node[], YAMLObject).VariantN.__ctor!(ubyte[]).this'
C:\...\projects\D-YAML.coedit has not been compiled
@btbytes
Copy link

btbytes commented Aug 13, 2015

FWIW ... this is the error message -

Target tinyendian 0.1.2 is up to date. Use --force to rebuild.
Building dyaml 0.5.1 configuration "library", build type debug.
Running dmd...
../../.dub/packages/dyaml-0.5.1/source/dyaml/node.d(277): Error: safe function 'dyaml.node.Node.__ctor!string.this' cannot call system function 'std.variant.VariantN!(16LU, YAMLNull, YAMLMerge, bool, long, real, ubyte[], SysTime, string, Pair[], Node[], YAMLObject).VariantN.__ctor!string.this'
../../.dub/packages/dyaml-0.5.1/source/dyaml/constructor.d(320): Error: template instance dyaml.node.Node.__ctor!string error instantiating
../../.dub/packages/dyaml-0.5.1/source/dyaml/composer.d(242):        instantiated from here: node!(string, immutable(ScalarStyle))
../../.dub/packages/dyaml-0.5.1/source/dyaml/node.d(332): Error: safe function 'dyaml.node.Node.__ctor!(Node).this' cannot call system function 'std.variant.VariantN!(16LU, YAMLNull, YAMLMerge, bool, long, real, ubyte[], SysTime, string, Pair[], Node[], YAMLObject).VariantN.__ctor!(Node[]).this'
../../.dub/packages/dyaml-0.5.1/source/dyaml/constructor.d(320): Error: template instance dyaml.node.Node.__ctor!(Node) error instantiating
../../.dub/packages/dyaml-0.5.1/source/dyaml/composer.d(269):        instantiated from here: node!(Node[], immutable(CollectionStyle))
../../.dub/packages/dyaml-0.5.1/source/dyaml/node.d(1756): Error: safe function 'dyaml.node.Node.findPair!(string, cast(Flag)true).findPair' cannot call system function 'std.variant.VariantN!(16LU, YAMLNull, YAMLMerge, bool, long, real, ubyte[], SysTime, string, Pair[], Node[], YAMLObject).VariantN.get!(const(Pair[])).get'
../../.dub/packages/dyaml-0.5.1/source/dyaml/node.d(783): Error: template instance dyaml.node.Node.findPair!(string, cast(Flag)true) error instantiating
../../.dub/packages/dyaml-0.5.1/source/dyaml/node.d(620):        instantiated from here: opIndex!string
../../.dub/packages/dyaml-0.5.1/source/dyaml/node.d(1098):        instantiated from here: get!(Pair[], cast(Flag)true)
../../.dub/packages/dyaml-0.5.1/source/dyaml/composer.d(310):        instantiated from here: opApply!(Node, Node)
../../.dub/packages/dyaml-0.5.1/source/dyaml/node.d(1042): Error: template instance dyaml.node.Node.get!(Node[], cast(Flag)true) error instantiating
../../.dub/packages/dyaml-0.5.1/source/dyaml/composer.d(330):        instantiated from here: opApply!(Node)
../../.dub/packages/dyaml-0.5.1/source/dyaml/node.d(332): Error: safe function 'dyaml.node.Node.__ctor!(Pair).this' cannot call system function 'std.variant.VariantN!(16LU, YAMLNull, YAMLMerge, bool, long, real, ubyte[], SysTime, string, Pair[], Node[], YAMLObject).VariantN.__ctor!(Pair[]).this'
../../.dub/packages/dyaml-0.5.1/source/dyaml/constructor.d(320): Error: template instance dyaml.node.Node.__ctor!(Pair) error instantiating
../../.dub/packages/dyaml-0.5.1/source/dyaml/composer.d(387):        instantiated from here: node!(Pair[], immutable(CollectionStyle))
../../.dub/packages/dyaml-0.5.1/source/dyaml/node.d(1431): Error: safe function 'dyaml.node.Node.value!(YAMLNull).value' cannot call system function 'std.variant.VariantN!(16LU, YAMLNull, YAMLMerge, bool, long, real, ubyte[], SysTime, string, Pair[], Node[], YAMLObject).VariantN.__ctor!(YAMLNull).this'
../../.dub/packages/dyaml-0.5.1/source/dyaml/constructor.d(361): Error: template instance dyaml.node.Node.value!(YAMLNull) error instantiating
../../.dub/packages/dyaml-0.5.1/source/dyaml/constructor.d(189):        instantiated from here: addConstructor!(YAMLNull)
../../.dub/packages/dyaml-0.5.1/source/dyaml/constructor.d(88):        instantiated from here: addConstructorScalar!(YAMLNull)
../../.dub/packages/dyaml-0.5.1/source/dyaml/node.d(1431): Error: safe function 'dyaml.node.Node.value!bool.value' cannot call system function 'std.variant.VariantN!(16LU, YAMLNull, YAMLMerge, bool

(snipped)

@kiith-sa
Copy link
Collaborator

Will look at this over the next weekend, probably will need to remove some @safe from the API; I guess less of Variant is @safe due to better attribute inference?

@kiith-sa
Copy link
Collaborator

Should be fixed by 2f3d782 , can you test?

@ghost
Copy link
Author

ghost commented Aug 23, 2015

Thx. Ok now. (verified on win 32 but the issue was platform-agnostic so i dare closing)

@ghost ghost closed this as completed Aug 23, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants