public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46160] New: [4.5/4.6 Regression] ICE with volatile structure and enum
@ 2010-10-24 22:12 jsm28 at gcc dot gnu.org
  2010-10-25  2:30 ` [Bug c++/46160] " hjl.tools at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2010-10-24 22:12 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.5/4.6 Regression] ICE with volatile structure and
                    enum
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jsm28@gcc.gnu.org


The following C++ code

void f(int);

void
g()
{
  struct S
  {
    enum E { A } ;
  };
  S s;
  volatile S *p = &s;
  f((int) p->A);
}

results in

gcc: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

with 4.5 and 4.6, but compiles fine with 4.4.


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

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

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-24 22:12 [Bug c++/46160] New: [4.5/4.6 Regression] ICE with volatile structure and enum jsm28 at gcc dot gnu.org
2010-10-25  2:30 ` [Bug c++/46160] " hjl.tools at gmail dot com
2010-10-26 14:09 ` rguenth at gcc dot gnu.org
2010-11-05 15:17 ` jakub at gcc dot gnu.org
2010-11-05 19:03 ` jakub at gcc dot gnu.org
2010-11-05 19:11 ` [Bug c++/46160] [4.5 " jakub at gcc dot gnu.org
2010-11-11 20:39 ` jakub at gcc dot gnu.org
2010-11-11 22:13 ` 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).