[cfe-commits] [Patch] Warn about self-init of refs using parenthesized initializers
Hans Wennborg
hans at chromium.org
Fri Sep 28 04:05:30 PDT 2012
Hi,
As pointed out in Wei's email [1], Clang currently fails to warn about
self-initialized references when using parenthesized initializers:
void f() {
int &a(a);
}
The attached patch fixes this. Please take a look.
Thanks,
Hans
[1]. http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-September/024582.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ref_self_init_parenthesized_initializers.patch
Type: application/octet-stream
Size: 1415 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120928/bfa7056a/attachment.obj>
More information about the cfe-commits
mailing list