[cfe-dev] Preliminary reinterpret_cast Sema patch
eli.friedman at gmail.com
Tue Oct 21 10:57:18 PDT 2008
On 10/21/08, Sebastian Redl <sebastian.redl at getdesigned.at> wrote:
> By the way, I discovered that it emits a disambiguation warning on this
> int (&rar) = const_cast<iarr>(ar);
> This feels a bit wrong - how else would I define a reference to an array to
> avoid the warning?
Well, it *is* ambiguous, at least from the parser's perspective;
consider if the int() were a cast and the & an addressof operator.
More information about the cfe-dev