public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28595]  New: [4.1/4.2 regression] ICE with invalid const static variable
@ 2006-08-04  0:55 reichelt at gcc dot gnu dot org
  2006-08-04  0:57 ` [Bug c++/28595] " reichelt at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-04  0:55 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE since GCC 4.1.0:

===============================
template<int> struct A
{
  static const int i;
};

template<int N> struct B
{
  char c[A<N>::i], d;
};

B<0> b;
===============================

bug.cc: In instantiation of 'B<0>':
bug.cc:11:   instantiated from here
bug.cc:7: internal compiler error: tree check: expected integer_cst, have
nop_expr in walk_subobject_offsets, at cp/class.c:3126
Please submit a full bug report, [etc.]


-- 
           Summary: [4.1/4.2 regression] ICE with invalid const static
                    variable
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2006-08-26 17:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-04  0:55 [Bug c++/28595] New: [4.1/4.2 regression] ICE with invalid const static variable reichelt at gcc dot gnu dot org
2006-08-04  0:57 ` [Bug c++/28595] " reichelt at gcc dot gnu dot org
2006-08-11 22:24 ` janis at gcc dot gnu dot org
2006-08-14 19:02 ` reichelt at gcc dot gnu dot org
2006-08-20 22:27 ` mmitchel at gcc dot gnu dot org
2006-08-25 22:17 ` mmitchel at gcc dot gnu dot org
2006-08-26 16:23 ` mmitchel at gcc dot gnu dot org
2006-08-26 16:38 ` [Bug c++/28595] [4.1 " mmitchel at gcc dot gnu dot org
2006-08-26 17:14 ` mmitchel at gcc dot gnu dot org
2006-08-26 17:15 ` mmitchel at gcc dot gnu dot org
2006-08-26 17:17 ` mmitchel at gcc dot gnu dot 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).