public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/51430] New: [4.7 Regression] ICE with array as static const member @ 2011-12-06 0:39 reichelt at gcc dot gnu.org 2011-12-06 0:40 ` [Bug c++/51430] " reichelt at gcc dot gnu.org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: reichelt at gcc dot gnu.org @ 2011-12-06 0:39 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51430 Bug #: 51430 Summary: [4.7 Regression] ICE with array as static const member Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: reichelt@gcc.gnu.org The following invalid code snippet triggers an ICE on trunk: ================================== template<int> struct A { static const int x[] = 0; }; A<0> a; ================================== bug.cc:3:26: error: invalid in-class initialization of static data member of non-integral type 'const int []' bug.cc:3:26: error: initializer fails to determine size of 'A<<anonymous> >::x' bug.cc: In instantiation of 'struct A<0>': bug.cc:6:26: required from here bug.cc:3:26: internal compiler error: in strip_array_domain, at cp/typeck.c:890 Please submit a full bug report, [etc.] ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/51430] [4.7 Regression] ICE with array as static const member 2011-12-06 0:39 [Bug c++/51430] New: [4.7 Regression] ICE with array as static const member reichelt at gcc dot gnu.org @ 2011-12-06 0:40 ` reichelt at gcc dot gnu.org 2011-12-06 8:20 ` jakub at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: reichelt at gcc dot gnu.org @ 2011-12-06 0:40 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51430 Volker Reichelt <reichelt at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |error-recovery, | |ice-on-invalid-code Target Milestone|--- |4.7.0 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/51430] [4.7 Regression] ICE with array as static const member 2011-12-06 0:39 [Bug c++/51430] New: [4.7 Regression] ICE with array as static const member reichelt at gcc dot gnu.org 2011-12-06 0:40 ` [Bug c++/51430] " reichelt at gcc dot gnu.org @ 2011-12-06 8:20 ` jakub at gcc dot gnu.org 2011-12-06 14:29 ` rguenth at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu.org @ 2011-12-06 8:20 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51430 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2011-12-06 AssignedTo|unassigned at gcc dot |jakub at gcc dot gnu.org |gnu.org | Ever Confirmed|0 |1 --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-06 08:19:56 UTC --- Created attachment 26001 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26001 gcc47-pr51430.patch Caused by http://gcc.gnu.org/viewcvs?view=revision&revision=174317 Untested fix. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/51430] [4.7 Regression] ICE with array as static const member 2011-12-06 0:39 [Bug c++/51430] New: [4.7 Regression] ICE with array as static const member reichelt at gcc dot gnu.org 2011-12-06 0:40 ` [Bug c++/51430] " reichelt at gcc dot gnu.org 2011-12-06 8:20 ` jakub at gcc dot gnu.org @ 2011-12-06 14:29 ` rguenth at gcc dot gnu.org 2011-12-06 19:53 ` jakub at gcc dot gnu.org 2011-12-06 20:00 ` jakub at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: rguenth at gcc dot gnu.org @ 2011-12-06 14:29 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51430 Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P5 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/51430] [4.7 Regression] ICE with array as static const member 2011-12-06 0:39 [Bug c++/51430] New: [4.7 Regression] ICE with array as static const member reichelt at gcc dot gnu.org ` (2 preceding siblings ...) 2011-12-06 14:29 ` rguenth at gcc dot gnu.org @ 2011-12-06 19:53 ` jakub at gcc dot gnu.org 2011-12-06 20:00 ` jakub at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu.org @ 2011-12-06 19:53 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51430 --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-06 19:52:43 UTC --- Author: jakub Date: Tue Dec 6 19:52:39 2011 New Revision: 182063 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182063 Log: PR c++/51430 * pt.c (tsubst_decl): Don't call strip_array_domain on error_mark_node. * g++.dg/template/static32.C: New test. Added: trunk/gcc/testsuite/g++.dg/template/static32.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/51430] [4.7 Regression] ICE with array as static const member 2011-12-06 0:39 [Bug c++/51430] New: [4.7 Regression] ICE with array as static const member reichelt at gcc dot gnu.org ` (3 preceding siblings ...) 2011-12-06 19:53 ` jakub at gcc dot gnu.org @ 2011-12-06 20:00 ` jakub at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: jakub at gcc dot gnu.org @ 2011-12-06 20:00 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51430 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-06 19:59:42 UTC --- Fixed. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-12-06 20:00 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-12-06 0:39 [Bug c++/51430] New: [4.7 Regression] ICE with array as static const member reichelt at gcc dot gnu.org 2011-12-06 0:40 ` [Bug c++/51430] " reichelt at gcc dot gnu.org 2011-12-06 8:20 ` jakub at gcc dot gnu.org 2011-12-06 14:29 ` rguenth at gcc dot gnu.org 2011-12-06 19:53 ` jakub at gcc dot gnu.org 2011-12-06 20:00 ` jakub at gcc dot gnu.org
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).