This is the mail archive of the
mailing list for the GCC project.
Compiling GCC With a C++ Compiler (g++)
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Mon, 11 Oct 2004 13:18:23 +0530
- Subject: Compiling GCC With a C++ Compiler (g++)
If I try compiling bits that include "gcc/tree.h" with
g++, I get:
/home/ranmath/src/gcc/gcc/gcc/tree.h:2504: error: member 'tree_string tree_node::string' with copy assignment operator not allowed in union
The definition of tree_string is:
struct tree_string GTY(())
struct tree_common common;
const char str;
If the "const" is removed from above, the compilation
There were a flurry of patches to make GCC compilable
with a C++ compiler in the recent past and I thought
it was now done... Didn't anyone else run into this?
(Apart from Tom, who suggested the fix above.)
Is this a bug? If yes, is it in the C++ compiler or
in the definition of tree_string?
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/