[cfe-dev] Issues with traversal

Joerg Sonnenberger joerg at britannica.bec.de
Tue Dec 6 16:16:24 PST 2011


On Tue, Dec 06, 2011 at 11:13:23PM +0100, Stefaan Himpe wrote:
> > /usr/include/c++/4.4.4/bits/postypes.h:214:12: error: unknown type name 'bool'
> >      inline bool
> >               ^
> 
> Filenames that end in .h are parsed in c-mode (as opposed to c++ mode) 
> by default leading to such errors.

There isn't a "C mode" for headers. The only piece of magic is that a C
system header location gets an implicit extern "C" {} wrapper and C++
system header location doesn't. That's irrelevant for bool though.

Joerg



More information about the cfe-dev mailing list