[GCC-XML] GCCXML chokes on <complex>

Brad King brad.king at kitware.com
Thu May 13 11:28:19 EDT 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steve M. Robbins wrote:
> /usr/include/c++/4.4/alpha-linux-gnu/bits/c++config.h:214: error: expected unqualified-id before 'namespace'
[snip]
> I tried compiling a simple program:
> 
> #include <complex>
> 
> int main(int ac, char* av[])
> {
>     return 0;
> }
> 
> With gcc, it compiles on alpha.  Using gccxml, I get the same error as shown above.
> Does gccxml need a tweak to handle this?

It would seem so.  You can use "gccxml -E" to preprocess the test
source and compare it to what "gcc -E" produces for the offending
spot.  Note that gccxml uses a patched GCC 4.2 parser internally
so sometimes it has trouble with headers from newer GCC versions.
The solution we use is to put tweaked versions of the offending
headers in "GCC_XML/Support/GCC/4.4" or other support directories.
You can copy the header to that location in gccxml and then modify
it to correct the error.  If you get it working please send me the
patch and I'll include it upstream.

Thanks,
- -Brad
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBAgAGBQJL7BqTAAoJEOyP7zp7+07aIxQQALErDGSdd0vEhfLShXV4H9Lw
Hdiz5rW9RJdN7GiuWWNzf/E2XPo/OZiY6z8Jco85FP6A16T0ONk2NQkt9GsvCt3W
2dUiLWhUb626IEp3oOe8QZJcgqLuY22XbANF7jDnuu65BX33dzlcJaCtdyBXCcS/
z/a7GMR43iw8BlX08gAJjPigwrG1NE2RvWqmUojWrJQGqdPDRJ9sI1U6uE4rsPxZ
qwN/eyq4PjlyXmv1axtQ4mME/8ckv0u5TqpAQMyz1vcdvOsBtzdDVPR1u8xsFv50
QyGRTxnrtHBzDs/oHinVSs0pmi1kb/AM9ZUZ//Q+nZq/SyYU0uooAOvk4iHrjfCr
ttJEBtgbgjpN1NWXeUDK7j3QiSDlnKA/f2+p+sQiTCHxyI0RkM3chgrHcdyg9N41
RidvDlpyQ5rHEQmSiIe+QBcr6zFsAH8VHj6+SrlTk4z5EOuhyFTDy6TErL5t+2nx
+IATG/Ne6VtE/pLaa94at03J7V9/vN6QrKm3DgDGWffh6NG/ibTWeQG/5+kp7t5g
eUXUP2RqGysBZaiGFI9j0prphKRXZnvXmBiEq/GKYPWIwOL7SS9Gk0THvTVf9AG7
ycG+f0TXtssgILEsolCV/+N3hQuHJqly598/h4pn0tdaZsTBG9PoVZEH/bliMd0g
FlpOQNEOYo0nfrPkkRcy
=gsIW
-----END PGP SIGNATURE-----


More information about the gccxml mailing list