This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Does "complex xxx" work?


"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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]