This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Does "complex xxx" work?
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: 21 Jun 2003 19:29:38 +0200
- Subject: Re: Does "complex xxx" work?
- Organization: Integrable Solutions
- References: <20030621172429.GA25184@lucon.org>
"H. J. Lu" <hjl@lucon.org> writes:
| c_common_nodes_and_builtins calls
|
| (*lang_hooks.decls.pushdecl) (build_decl (TYPE_DECL,
| get_identifier ("complex int"),
| complex_integer_type_node));
| (*lang_hooks.decls.pushdecl) (build_decl (TYPE_DECL,
| get_identifier ("complex float"),
| complex_float_type_node));
| (*lang_hooks.decls.pushdecl) (build_decl (TYPE_DECL,
| get_identifier ("complex double"),
| complex_double_type_node));
| (*lang_hooks.decls.pushdecl)
| (build_decl (TYPE_DECL, get_identifier ("complex long double"),
| complex_long_double_type_node));
|
| What are they used for? I still can't use any of those in C++.
"_Complex type" works in C++. Note that complex, in C99, behaves as if
#define complex _Complex
-- Gaby