[cfe-commits] r65385 - in /cfe/trunk: lib/Sema/Sema.h lib/Sema/SemaDecl.cpp test/Sema/var-redecl.c test/Sema/vla.c

Eli Friedman eli.friedman at gmail.com
Tue Feb 24 16:30:51 PST 2009


On Tue, Feb 24, 2009 at 1:24 PM, Douglas Gregor <dgregor at apple.com> wrote:
>
> On Feb 24, 2009, at 1:02 PM, Eli Friedman wrote:
>
>> On Tue, Feb 24, 2009 at 11:23 AM, Douglas Gregor <dgregor at apple.com>
>> wrote:
>>>
>>> +  // FIXME: We don't do this in C++ because, although we would like
>>> +  // to get the extra checking that this operation implies,
>>> +  // the declaration itself is not visible according to C++'s rules.
>>
>> It isn't visible according to C's rules either... what exactly is the
>> issue here?
>
>
> The issue is that we want to diagnose cases where there are incompatible
> declarations even when those declarations aren't necessarily visible.

I follow that, but is C++ different in this regard?

-Eli




More information about the cfe-commits mailing list