From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9166 invoked by alias); 11 Nov 2012 06:14:28 -0000 Received: (qmail 9133 invoked by uid 48); 11 Nov 2012 06:14:08 -0000 From: "peter at colberg dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug treelang/55269] New: Rename tree_node complex field to avoid conflict with C99 complex type Date: Sun, 11 Nov 2012 06:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: treelang X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: peter at colberg dot org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg00927.txt.bz2 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: unassigned@gcc.gnu.org ReportedBy: peter@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 . 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