http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55269



             Bug #: 55269

           Summary: Rename tree_node complex field to avoid conflict with

                    C99 complex type

    Classification: Unclassified

           Product: gcc

           Version: 4.7.2

            Status: UNCONFIRMED

          Severity: minor

          Priority: P3

         Component: treelang

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: pe...@colberg.org





Dear GCC developers,



The identifier of the union field "tree_complex complex" of union tree_node in

tree.h potentially conflicts with the macro "#define complex _Complex" defined

in C99 <complex.h>.



I stumbled over this issue while writing a plugin for GCC using the foreign

function interface of LuaJIT. LuaJIT predefines C99 complex types, both

"_Complex" and "complex". Therefore LuaJIT rejects "tree_complex complex"

of tree_node as a declaration with an invalid declaration.



Could the tree_complex field be renamed, e.g., to "complex_cst"?



(The suggestion stems from the name of the macro COMPLEX_CST_CHECK.)



Regards,

Peter

Reply via email to