From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29268 invoked by alias); 30 Jul 2014 04:31:37 -0000 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 Received: (qmail 28587 invoked by uid 48); 30 Jul 2014 04:31:16 -0000 From: "trippels at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/61959] [4.8/4.9/4.10 Regression] ICE: in tree_to_uhwi, at tree.h:3657 when building Mozilla code Date: Wed, 30 Jul 2014 04:31:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: trippels at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc component target_milestone short_desc everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg01957.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61959 Markus Trippelsdorf changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-07-30 CC| |trippels at gcc dot gnu.org Component|c++ |middle-end Target Milestone|--- |4.8.4 Summary|"internal compiler error: |[4.8/4.9/4.10 Regression] |in tree_to_uhwi, at |ICE: in tree_to_uhwi, at |tree.h:3657" when building |tree.h:3657 when building |Mozilla code |Mozilla code Ever confirmed|0 |1 --- Comment #5 from Markus Trippelsdorf --- A bit further reduced: markus@x4 tmp % cat foo.ii template struct BasePoint { Coord x, y; constexpr BasePoint (Coord, Coord) : x (0), y (0) {} }; template struct BaseCoord { int value; constexpr BaseCoord (T) : value (1) {} }; template struct IntCoordTyped : BaseCoord, units { typedef BaseCoord Super; constexpr IntCoordTyped (int) : Super (0) {} }; template struct IntPointTyped : BasePoint >, units { typedef BasePoint > Super; constexpr IntPointTyped (int, int) : Super (0, 0) {} }; struct A { }; IntPointTyped a (0, 0); markus@x4 tmp % g++ -O2 -std=c++11 -c foo.ii foo.ii:25:26: internal compiler error: tree check: expected field_decl, have pointer_plus_expr in output_constructor, at varasm.c:5194 IntPointTyped a (0, 0); ^ 0xdb4d94 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../gcc/gcc/tree.c:9169 0xe0a9e4 tree_check ../../gcc/gcc/tree.h:2728 0xe0a9e4 output_constructor ../../gcc/gcc/varasm.c:5194 0xe02817 output_constant ../../gcc/gcc/varasm.c:4735 0xe0b364 assemble_variable(tree_node*, int, int, int) ../../gcc/gcc/varasm.c:2175 0xe0caff varpool_node::assemble_decl() ../../gcc/gcc/varpool.c:544 0xe0d0c5 varpool_node::assemble_decl() ../../gcc/gcc/varpool.c:516 0xe0d0c5 varpool_node::output_variables() ../../gcc/gcc/varpool.c:684 0x844a7c compile() ../../gcc/gcc/cgraphunit.c:2262 0x845184 finalize_compilation_unit() ../../gcc/gcc/cgraphunit.c:2338 0x63330a cp_write_global_declarations() ../../gcc/gcc/cp/decl2.c:4684 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report.