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
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.gccxml.org/mailman/listinfo/gccxml

Reply via email to