1052 – DMD 1.009 - aliasing functions from superclasses may result in incorrect conflicts

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1052 - DMD 1.009 - aliasing functions from superclasses may result in incorrect conflicts
Summary: DMD 1.009 - aliasing functions from superclasses may result in incorrect conf...
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 All
: P2 major
Assignee: Walter Bright
URL:
Keywords: rejects-valid
Depends on:
Blocks:
Reported: 2007年03月11日 13:26 UTC by Tomasz Stachowiak
Modified: 2014年02月16日 15:23 UTC (History)
0 users

See Also:


Attachments
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Tomasz Stachowiak 2007年03月11日 13:26:01 UTC
1.009 was not in the list, so i picked 1.008 as the DMD version.
// superalias.d:
class Base {
	void func(int a) {}
}
class Foo : Base {
	alias Base.func func;
}
class Bar : Foo {
	alias Foo.func func;
	void func(char[] a) {}
}
// ----
superalias.d(7): alias superalias.Foo.func conflicts with superalias.Bar.func at superalias.d(13)
Comment 1 Frank Benoit 2007年03月17日 11:43:40 UTC
This make version 1.009 unusable for me :(
Comment 2 Thomas Kühne 2007年03月29日 14:08:02 UTC
Added to DStress as
http://dstress.kuehne.cn/run/o/overload_28_A.d 
Comment 3 Walter Bright 2007年04月11日 22:00:12 UTC
Fixed dmd 1.011


AltStyle によって変換されたページ (->オリジナル) /