public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29571]  New: [4.2/4.3 regression] ICE with invalid static const member
@ 2006-10-23 20:09 reichelt at gcc dot gnu dot org
  2006-10-23 20:16 ` [Bug c++/29571] " reichelt at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-10-23 20:09 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet triggers an ICE on mainline and 4.3 branch:

======================================
struct A
{
  static const int i = 0/0 + "";
  static const int j = int(i);
};
======================================

bug.cc:3: warning: division by zero in '0 / 0'
bug.cc:3: error: invalid conversion from 'const char*' to 'int'
bug.cc:3: error: 'A::i' cannot be initialized by a non-constant expression when
being declared
bug.cc:4: internal compiler error: in build_c_cast, at cp/typeck.c:5491
Please submit a full bug report, [etc.]


-- 
           Summary: [4.2/4.3 regression] ICE with invalid static const
                    member
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, error-recovery, 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=29571


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

end of thread, other threads:[~2010-05-22 18:18 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-23 20:09 [Bug c++/29571] New: [4.2/4.3 regression] ICE with invalid static const member reichelt at gcc dot gnu dot org
2006-10-23 20:16 ` [Bug c++/29571] " reichelt at gcc dot gnu dot org
2006-10-26 13:09 ` pinskia at gcc dot gnu dot org
2006-12-11  6:57 ` mmitchel at gcc dot gnu dot org
2007-02-19 20:35 ` mmitchel at gcc dot gnu dot org
2007-05-14 21:32 ` mmitchel at gcc dot gnu dot org
2007-07-20  3:49 ` mmitchel at gcc dot gnu dot org
2007-10-09 19:28 ` mmitchel at gcc dot gnu dot org
2008-02-01 16:56 ` jsm28 at gcc dot gnu dot org
2008-05-19 20:47 ` [Bug c++/29571] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2009-01-01 21:36 ` pinskia at gcc dot gnu dot org
2009-01-02  5:01 ` mmitchel at gcc dot gnu dot org
2009-03-31 20:06 ` [Bug c++/29571] [4.3/4.4/4.5 " jsm28 at gcc dot gnu dot org
2009-08-04 12:35 ` rguenth at gcc dot gnu dot org
2010-05-22 18:18 ` [Bug c++/29571] [4.3/4.4/4.5/4.6 " rguenth 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).