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.

_______________________________________________
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