[Issue 3980] New: DMDFE confused about function pointer/whisper syntax when mixed with array indexing.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Mar 17 07:20:53 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3980
Summary: DMDFE confused about function pointer/whisper syntax
when mixed with array indexing.
Product: D
Version: 1.057
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: brix at brix-verden.dk
--- Comment #0 from Thomas Brix Larsen <brix at brix-verden.dk> 2010-03-17 07:20:51 PDT ---
http://dsource.org/projects/ldc/ticket/402
struct Stdout
{
static Stdout opCall(int i = 0) { Stdout s; return s; }
}
void main()
{
int[char[]] b;
Stdout(b["hello"])(); // error, DMDFE thinks you want to declare b
// of type Stdout["hello"]
int (funcptr[4])(); // declares int[4] funcptr;
}
--
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