From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32296 invoked by alias); 16 Feb 2014 17:25:53 -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 32271 invoked by uid 48); 16 Feb 2014 17:25:50 -0000 From: "daniel.kruegler at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/60199] 'error: field initializer is not constant' when initializing static member function pointer to a function Date: Sun, 16 Feb 2014 17:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: daniel.kruegler at googlemail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-02/txt/msg01593.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D60199 Daniel Kr=C3=BCgler changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |daniel.kruegler@googlemail. | |com --- Comment #1 from Daniel Kr=C3=BCgler --- Seems to be fixed in 4.9 trunk >>From gcc-bugs-return-443837-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sun Feb 16 17:26:35 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 591 invoked by alias); 16 Feb 2014 17:26:34 -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 Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 567 invoked by uid 48); 16 Feb 2014 17:26:30 -0000 From: "reichelt at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/60225] New: [4.9 Regression] [c++11] ICE initializing constexpr array Date: Sun, 16 Feb 2014 17:26:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: ice-on-invalid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: reichelt at gcc dot gnu.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-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter Message-ID: 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-02/txt/msg01594.txt.bz2 Content-length: 2319 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60225 Bug ID: 60225 Summary: [4.9 Regression] [c++11] ICE initializing constexpr array Product: gcc Version: 4.9.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: reichelt at gcc dot gnu.org The following invalid code snippet (compiled with "-std=c++11") triggers an ICE on trunk: ========================================== struct A { constexpr A() {} static constexpr A a[2] = {}; }; ========================================== bug.cc:4:30: internal compiler error: in literal_type_p, at cp/semantics.c:7365 static constexpr A a[2] = {}; ^ 0x737157 literal_type_p(tree_node*) ../../gcc/gcc/cp/semantics.c:7365 0x7388bd ensure_literal_type_for_constexpr_object(tree_node*) ../../gcc/gcc/cp/semantics.c:7386 0x5d8ebf cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int) ../../gcc/gcc/cp/decl.c:6206 0x6865e6 grokfield(cp_declarator const*, cp_decl_specifier_seq*, tree_node*, bool, tree_node*, tree_node*) ../../gcc/gcc/cp/decl2.c:985 0x6a611f cp_parser_member_declaration ../../gcc/gcc/cp/parser.c:20429 0x6a9724 cp_parser_member_specification_opt ../../gcc/gcc/cp/parser.c:19976 0x6a9724 cp_parser_class_specifier_1 ../../gcc/gcc/cp/parser.c:19210 0x6a9724 cp_parser_class_specifier ../../gcc/gcc/cp/parser.c:19437 0x6a9724 cp_parser_type_specifier ../../gcc/gcc/cp/parser.c:14302 0x6c2ba0 cp_parser_decl_specifier_seq ../../gcc/gcc/cp/parser.c:11547 0x6c9799 cp_parser_simple_declaration ../../gcc/gcc/cp/parser.c:11137 0x6acc63 cp_parser_block_declaration ../../gcc/gcc/cp/parser.c:11086 0x6d3f12 cp_parser_declaration ../../gcc/gcc/cp/parser.c:10983 0x6d2c08 cp_parser_declaration_seq_opt ../../gcc/gcc/cp/parser.c:10869 0x6d44aa cp_parser_translation_unit ../../gcc/gcc/cp/parser.c:4014 0x6d44aa c_parse_file() ../../gcc/gcc/cp/parser.c:31536 0x7f3813 c_common_parse_file() ../../gcc/gcc/c-family/c-opts.c:1060 Please submit a full bug report, [etc.]