Does "complex xxx" work?

Gabriel Dos Reis gdr@integrable-solutions.net
Sat Jun 21 18:39:00 GMT 2003


"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



More information about the Gcc mailing list