[GCC-XML] fail on gcc-4.4 <tr1/tuple>

Maik Beckmann Beckmann.Maik at googlemail.com
Thu Jun 4 17:28:09 EDT 2009


Hello,

I've built gccxml from CVS-HEAD with gcc-4.4.  

Some code of mine includes <tr1/tuple>.  gccxml chokes with
$ echo "#include <tr1/tuple>" > foo.hpp
$ LC_ALL=C gccxml foo.hpp > log 2>&1 
  log: http://pastebin.com/f65525303

As one can see from the log gcc-4.4's tr1/tuple happens to use c++0x variadic
templates.  But g++ in non c++0x mode runs fine
$ echo "#include <tr1/tuple>" > foo.cpp
$ g++ -c foo.cpp
I guess gcc uses some trick to use variadic templates even in normal mode.  Maybe
  #pragma GCC system_header
does the trick??

However, just wanted to let you know.

Best,
 -- Maik

PS: I didn't test if gcc vesions < 4.4 have the same issue.




More information about the gccxml mailing list