D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19462 - A noisy warning about toHash will occur
Summary: A noisy warning about toHash will occur
Status: RESOLVED WORKSFORME
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: x86_64 Windows
: P1 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-03 10:51 UTC by SHOO
Modified: 2019-02-08 20:59 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description SHOO 2018-12-03 10:51:20 UTC
Noisy warnings now occur with this code (in dmd/druntime/Phobos master):


------------------------------------
struct Foo
{
	Object _p;
	alias _p this;
}

struct Bar
{
	import std.typecons: Proxy;
	Object foo;
	mixin Proxy!foo;
}

void main(){}
------------------------------------

Maybe, the origin is hashOf template function called by Proxy.
Comment 1 Nathan S. 2019-02-08 20:59:01 UTC
I'm not currently getting any warning messages when compiling that code so it seems to have been fixed by changes either in druntime or Phobos.