[Issue 5974] Incorrect nested function address in expression (&f).ptr
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Dec 20 23:28:06 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5974
Don <clugdbug at yahoo.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |clugdbug at yahoo.com.au
--- Comment #1 from Don <clugdbug at yahoo.com.au> 2011-12-20 23:28:04 PST ---
More direct test case:
void main()
{
void f() { }
void* t1 = (&f).ptr;
void* t2 = (&f).ptr;
assert(t1 == t2);
}
The fac that (&f).funcptr fails to compile is a separate though closely related
bug.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list