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

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).