public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55951] New: ICE in check_array_designated_initializer, at cp/decl.c:4785
@ 2013-01-11 22:35 ppluzhnikov at google dot com
  2013-01-24 18:55 ` [Bug c++/55951] " ppluzhnikov at google dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ppluzhnikov at google dot com @ 2013-01-11 22:35 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55951
           Summary: ICE in check_array_designated_initializer, at
                    cp/decl.c:4785
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ppluzhnikov@google.com


Google ref: b/7991668

GCC-4.7 and current trunk ICE on this source:


enum { A };

static const char *a[] = {
  [A] = "a"
};



g++ -c t.cc
t.cc:5:1: internal compiler error: in check_array_designated_initializer, at
cp/decl.c:4785
 };
 ^
0x516a63 check_array_designated_initializer
    ../../gcc/cp/decl.c:4785
0x528429 reshape_init_array_1
    ../../gcc/cp/decl.c:5084
0x5274d9 reshape_init(tree_node*, tree_node*, int)
    ../../gcc/cp/decl.c:5470
0x529479 check_initializer
    ../../gcc/cp/decl.c:5642
0x53bc45 cp_finish_decl(tree_node*, tree_node*, bool, tree_node*, int)
    ../../gcc/cp/decl.c:6320
0x6133db cp_parser_init_declarator
    ../../gcc/cp/parser.c:16030
0x613c4e cp_parser_simple_declaration
    ../../gcc/cp/parser.c:10561
0x615a20 cp_parser_block_declaration
    ../../gcc/cp/parser.c:10442
0x61e60b cp_parser_declaration
    ../../gcc/cp/parser.c:10339
0x61d2dd cp_parser_declaration_seq_opt
    ../../gcc/cp/parser.c:10225
0x61eb82 cp_parser_translation_unit
    ../../gcc/cp/parser.c:3807
0x61eb82 c_parse_file()
    ../../gcc/cp/parser.c:28175
0x725a94 c_common_parse_file()
    ../../gcc/c-family/c-opts.c:1022
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-04-01 21:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-11 22:35 [Bug c++/55951] New: ICE in check_array_designated_initializer, at cp/decl.c:4785 ppluzhnikov at google dot com
2013-01-24 18:55 ` [Bug c++/55951] " ppluzhnikov at google dot com
2013-01-28 18:50 ` paolo.carlini at oracle dot com
2013-03-26 10:23 ` doko at gcc dot gnu.org
2013-03-26 10:24 ` doko at gcc dot gnu.org
2013-03-26 10:37 ` [Bug c++/55951] [4.8/4.9 Regression] " paolo.carlini at oracle dot com
2013-03-26 10:56 ` paolo.carlini at oracle dot com
2013-03-26 11:20 ` paolo.carlini at oracle dot com
2013-03-26 16:50 ` paolo.carlini at oracle dot com
2013-04-01 21:36 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).