public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35316]  New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields
@ 2008-02-23 17:52 reichelt at gcc dot gnu dot org
  2008-02-23 17:52 ` [Bug c++/35316] " reichelt at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-23 17:52 UTC (permalink / raw)
  To: gcc-bugs

The following valid code snippet triggers an ICE since GCC 4.2.0:

==========================
template<int> struct A
{
  int i : 2;

  void foo()
  {
    typeof(i) j;
  }
};
==========================

bug.cc: In member function 'void A<<anonymous> >::foo()':
bug.cc:7: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

Also happens with __decltype instead of typeof (on mainline and 4.3 branch).


-- 
           Summary: [4.2/4.3/4.4 regression] ICE with typeof/decltype and
                    bit-fields
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-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=35316


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

end of thread, other threads:[~2009-04-29 15:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-23 17:52 [Bug c++/35316] New: [4.2/4.3/4.4 regression] ICE with typeof/decltype and bit-fields reichelt at gcc dot gnu dot org
2008-02-23 17:52 ` [Bug c++/35316] " reichelt at gcc dot gnu dot org
2008-03-03 16:23 ` rguenth at gcc dot gnu dot org
2008-04-22 18:38 ` jason at gcc dot gnu dot org
2008-04-22 23:14 ` jason at gcc dot gnu dot org
2008-04-23  1:47 ` jason at gcc dot gnu dot org
2008-04-26 19:58 ` [Bug c++/35316] [4.2 " reichelt at gcc dot gnu dot org
2008-05-19 20:33 ` jsm28 at gcc dot gnu dot org
2008-12-02 17:22 ` jason at gcc dot gnu dot org
2009-04-29 15:38 ` pinskia 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).