[cfe-commits] r160455 - /cfe/trunk/test/PCH/cxx-typeid.cpp

Aaron Ballman aaron at aaronballman.com
Wed Jul 18 20:06:38 PDT 2012


On Wed, Jul 18, 2012 at 5:45 PM, Richard Smith <richard at metafoo.co.uk> wrote:
> This test indirectly includes <typeinfo>. Presumably your system now has a
> <typeinfo> which requires C++11. I'm surprised you don't also see failures
> in the 8 tests in test/CodeGenCXX which include <typeinfo>.

I think the issue is that the non-VS cmd.exe is finding Visual Studio
11's include directories, and the VS command line is finding VS 10's
include directories.  VS 10's typeinfo does not make use of c++11
features, but VS 11's appears to.  VS 11 assumes you're using C++11
unless you define _HAS_CPP0X to zero instead of one.

The header causing the issues is actually xtr1common being included
from xstddef (which is included from typeinfo).

~Aaron



More information about the cfe-commits mailing list