[GCC-XML] Help with implementation of atomic_base.h in GCC v4.7

Brad King brad.king at kitware.com
Mon Aug 26 08:56:39 EDT 2013


On 08/24/2013 06:55 PM, Cosmo Harrigan wrote:
> After building the latest version of gccxml from source, it generates errors when processing the implementation of atomic_base.h from GCC v4.7.
> 
> When I run the command:
> gccxml /usr/include/c++/4.7/bits/atomic_base.h
> 
> I receive the following output.
> 
> Does anyone have any suggestions on how to resolve this, or does this require a new issue to be opened? Thank you in advance.
> 
> /usr/include/c++/4.7/bits/atomic_base.h:63: error: 'constexpr' does not name a type

The parser is a patched GCC 4.2 so there is no C++11 support.

As a quick hack, try defining -Dconstexpr= -Dnoexcept= on the
command line.

We distribute patched copies of system headers to work around
such limitations (and have done so even before C++11 to handle
other compilers' extensions).  If one places a hacked copy of
this header in GCC_XML/Support/GCC/4.7/bits it will override
the system one.

One of these solutions will need to be builtin upstream.  You
could fork on Github from https://github.com/gccxml/gccxml
and submit a pull request.

Thanks,
-Brad



More information about the gccxml mailing list