LGTM. On Jan 4, 2013, at 8:18 AM, Rafael Espíndola <[email protected]> wrote:
> On 4 January 2013 05:34, Enea Zaffanella <[email protected]> wrote: >> Hello Rafael. > ... > >> It seems to me that, this way, you are no longer unqualifying the parameter >> type. As a consequence, I now see the following: >> >> $ cat bug.c >> void foo1(void*); >> void foo2(void* const); >> >> void bar() { >> foo1(0); >> foo2(0); >> } >> >> In the call foo2(0), the null pointer implicit cast converts to a const >> qualified scalar rvalue, which should be forbidden; afaict, it should >> produce the very same cast as for the call foo1(0): > > The attached patch should fix it. > >> Enea. >> > > Cheers, > Rafael > <t.patch> _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
