[cfe-commits] [PATCH][MS] - type_info forward class declaration

Francois Pichet pichet2000 at gmail.com
Fri Aug 27 03:54:06 PDT 2010


On Thu, Aug 26, 2010 at 10:28 AM, Douglas Gregor <dgregor at apple.com> wrote:
> This test case is clearly broken:

Sorry for the broken test case.
Here is an updated patch.

> Does Visual C++ also implicitly declare namespace "std" or "std::type_info"? That's the kind of thing
> you'll also want to check.

I checked and Visual C++ really predeclares type_info at the global scope level.
In <type_info> it then does something like that:

class type_info {
    //..
};

namespace std {
    using ::type_info;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ms_type_info.patch
Type: application/octet-stream
Size: 901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20100827/68c39009/attachment.obj>


More information about the cfe-commits mailing list