[cfe-dev] Patch for References
Bill Wendling
isanbard at gmail.com
Thu Jul 12 22:04:39 PDT 2007
Hi all,
Here's a patch to correct some reference problems. We weren't
accounting for references to functions and references to arrays. So
something like this would produce errors:
int g(int);
void f() {
int (&rg)(int) = g;
rg(i); // Error
int a[3];
int (&ra)[3] = a;
ra[1] = i; // Error
}
Okay to commit?
-bw
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff.txt
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20070712/d580cf6e/attachment.txt>
More information about the cfe-dev
mailing list