public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/58700] New: [4.8/4.9 Regression] ICE declaring static bit-field @ 2013-10-12 20:54 reichelt at gcc dot gnu.org 2013-10-12 20:54 ` [Bug c++/58700] " reichelt at gcc dot gnu.org ` (6 more replies) 0 siblings, 7 replies; 8+ messages in thread From: reichelt at gcc dot gnu.org @ 2013-10-12 20:54 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58700 Bug ID: 58700 Summary: [4.8/4.9 Regression] ICE declaring static bit-field Product: gcc Version: 4.9.0 Status: UNCONFIRMED 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 triggers an ICE since GCC 4.8.0: ===================== struct A { static int : 4; }; ===================== bug.cc:3:16: internal compiler error: Segmentation fault static int : 4; ^ 0xb15dff crash_signal ../../gcc/gcc/toplev.c:335 0x5831a7 grokdeclarator(cp_declarator const*, cp_decl_specifier_seq*, decl_context, int, tree_node**) ../../gcc/gcc/cp/decl.c:10642 0x617fcd grokbitfield(cp_declarator const*, cp_decl_specifier_seq*, tree_node*, tree_node*) ../../gcc/gcc/cp/decl2.c:1043 0x660ba6 cp_parser_member_declaration ../../gcc/gcc/cp/parser.c:20031 0x6402c7 cp_parser_member_specification_opt ../../gcc/gcc/cp/parser.c:19726 0x6402c7 cp_parser_class_specifier_1 ../../gcc/gcc/cp/parser.c:18970 0x6402c7 cp_parser_class_specifier ../../gcc/gcc/cp/parser.c:19197 0x6402c7 cp_parser_type_specifier ../../gcc/gcc/cp/parser.c:14144 0x65924f cp_parser_decl_specifier_seq ../../gcc/gcc/cp/parser.c:11389 0x65fd89 cp_parser_simple_declaration ../../gcc/gcc/cp/parser.c:10979 0x643860 cp_parser_block_declaration ../../gcc/gcc/cp/parser.c:10928 0x66aaae cp_parser_declaration ../../gcc/gcc/cp/parser.c:10825 0x6697ca cp_parser_declaration_seq_opt ../../gcc/gcc/cp/parser.c:10711 0x66b0e6 cp_parser_translation_unit ../../gcc/gcc/cp/parser.c:3989 0x66b0e6 c_parse_file() ../../gcc/gcc/cp/parser.c:30962 0x787f73 c_common_parse_file() ../../gcc/gcc/c-family/c-opts.c:1046 Please submit a full bug report, [etc.] GCC 4.7.x issued a suitable error message instead: bug.cc:3:16: error: static member '<anonymous>' cannot be a bit-field ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58700] [4.8/4.9 Regression] ICE declaring static bit-field 2013-10-12 20:54 [Bug c++/58700] New: [4.8/4.9 Regression] ICE declaring static bit-field reichelt at gcc dot gnu.org @ 2013-10-12 20:54 ` reichelt at gcc dot gnu.org 2013-10-13 1:16 ` paolo.carlini at oracle dot com ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: reichelt at gcc dot gnu.org @ 2013-10-12 20:54 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58700 Volker Reichelt <reichelt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |ice-on-invalid-code Known to work| |4.7.0 Target Milestone|--- |4.8.2 Known to fail| |4.8.0, 4.9.0 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58700] [4.8/4.9 Regression] ICE declaring static bit-field 2013-10-12 20:54 [Bug c++/58700] New: [4.8/4.9 Regression] ICE declaring static bit-field reichelt at gcc dot gnu.org 2013-10-12 20:54 ` [Bug c++/58700] " reichelt at gcc dot gnu.org @ 2013-10-13 1:16 ` paolo.carlini at oracle dot com 2013-10-16 9:50 ` jakub at gcc dot gnu.org ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: paolo.carlini at oracle dot com @ 2013-10-13 1:16 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58700 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2013-10-13 Assignee|unassigned at gcc dot gnu.org |paolo.carlini at oracle dot com Ever confirmed|0 |1 --- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> --- Mine. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58700] [4.8/4.9 Regression] ICE declaring static bit-field 2013-10-12 20:54 [Bug c++/58700] New: [4.8/4.9 Regression] ICE declaring static bit-field reichelt at gcc dot gnu.org 2013-10-12 20:54 ` [Bug c++/58700] " reichelt at gcc dot gnu.org 2013-10-13 1:16 ` paolo.carlini at oracle dot com @ 2013-10-16 9:50 ` jakub at gcc dot gnu.org 2013-10-23 0:21 ` paolo.carlini at oracle dot com ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: jakub at gcc dot gnu.org @ 2013-10-16 9:50 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58700 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.8.2 |4.8.3 --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- GCC 4.8.2 has been released. ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58700] [4.8/4.9 Regression] ICE declaring static bit-field 2013-10-12 20:54 [Bug c++/58700] New: [4.8/4.9 Regression] ICE declaring static bit-field reichelt at gcc dot gnu.org ` (2 preceding siblings ...) 2013-10-16 9:50 ` jakub at gcc dot gnu.org @ 2013-10-23 0:21 ` paolo.carlini at oracle dot com 2013-11-05 15:01 ` rguenth at gcc dot gnu.org ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: paolo.carlini at oracle dot com @ 2013-10-23 0:21 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58700 --- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> --- Pending patch here: http://gcc.gnu.org/ml/gcc-patches/2013-10/msg00880.html ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58700] [4.8/4.9 Regression] ICE declaring static bit-field 2013-10-12 20:54 [Bug c++/58700] New: [4.8/4.9 Regression] ICE declaring static bit-field reichelt at gcc dot gnu.org ` (3 preceding siblings ...) 2013-10-23 0:21 ` paolo.carlini at oracle dot com @ 2013-11-05 15:01 ` rguenth at gcc dot gnu.org 2013-11-26 11:31 ` paolo at gcc dot gnu.org 2013-11-26 11:33 ` [Bug c++/58700] [4.8 " paolo.carlini at oracle dot com 6 siblings, 0 replies; 8+ messages in thread From: rguenth at gcc dot gnu.org @ 2013-11-05 15:01 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58700 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58700] [4.8/4.9 Regression] ICE declaring static bit-field 2013-10-12 20:54 [Bug c++/58700] New: [4.8/4.9 Regression] ICE declaring static bit-field reichelt at gcc dot gnu.org ` (4 preceding siblings ...) 2013-11-05 15:01 ` rguenth at gcc dot gnu.org @ 2013-11-26 11:31 ` paolo at gcc dot gnu.org 2013-11-26 11:33 ` [Bug c++/58700] [4.8 " paolo.carlini at oracle dot com 6 siblings, 0 replies; 8+ messages in thread From: paolo at gcc dot gnu.org @ 2013-11-26 11:31 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58700 --- Comment #4 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> --- Author: paolo Date: Tue Nov 26 11:31:46 2013 New Revision: 205389 URL: http://gcc.gnu.org/viewcvs?rev=205389&root=gcc&view=rev Log: /cp 2013-11-26 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58700 * decl.c (grokdeclarator): Don't try to pass declarator->id_loc to build_lang_decl_loc when declarator is null. /testsuite 2013-11-26 Paolo Carlini <paolo.carlini@oracle.com> PR c++/58700 * g++.dg/parse/bitfield4.C: New. Added: trunk/gcc/testsuite/g++.dg/parse/bitfield4.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/decl.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/58700] [4.8 Regression] ICE declaring static bit-field 2013-10-12 20:54 [Bug c++/58700] New: [4.8/4.9 Regression] ICE declaring static bit-field reichelt at gcc dot gnu.org ` (5 preceding siblings ...) 2013-11-26 11:31 ` paolo at gcc dot gnu.org @ 2013-11-26 11:33 ` paolo.carlini at oracle dot com 6 siblings, 0 replies; 8+ messages in thread From: paolo.carlini at oracle dot com @ 2013-11-26 11:33 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58700 Paolo Carlini <paolo.carlini at oracle dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED Assignee|paolo.carlini at oracle dot com |unassigned at gcc dot gnu.org Target Milestone|4.8.3 |4.9.0 Summary|[4.8/4.9 Regression] ICE |[4.8 Regression] ICE |declaring static bit-field |declaring static bit-field --- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> --- Fixed for 4.9.0. ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-11-26 11:33 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-10-12 20:54 [Bug c++/58700] New: [4.8/4.9 Regression] ICE declaring static bit-field reichelt at gcc dot gnu.org 2013-10-12 20:54 ` [Bug c++/58700] " reichelt at gcc dot gnu.org 2013-10-13 1:16 ` paolo.carlini at oracle dot com 2013-10-16 9:50 ` jakub at gcc dot gnu.org 2013-10-23 0:21 ` paolo.carlini at oracle dot com 2013-11-05 15:01 ` rguenth at gcc dot gnu.org 2013-11-26 11:31 ` paolo at gcc dot gnu.org 2013-11-26 11:33 ` [Bug c++/58700] [4.8 " 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).