[Issue 1006] New: no ambiguity error given if getting function address
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Feb 24 09:20:57 PST 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1006
Summary: no ambiguity error given if getting function address
Product: D
Version: 1.007
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: bugzilla at digitalmars.com
ReportedBy: benoit at tionex.de
this compiles without error.
class C {
void fnc(){
}
void fnc( int a ){
}
static this(){
void* ptr = & fnc; //(1)
}
}
I think (1) should be rejected, because of ambiguity.
--
More information about the Digitalmars-d-bugs
mailing list