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: unassig...@gcc.gnu.org
        ReportedBy: js...@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.

Reply via email to