This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/14877] New: [3.3/3.4/3.5 regression] ICE in find_function_data


template<typename T>
struct S {
  S () { };
  static T *a () { return s; }
  static T *s;
};

template<typename T> T *S<T>::s;

struct U : S<U>
{
  int c (int x) const { return u[x]; }
  friend class S<U>;
  U ();
  int u[2];
};

template <bool z>
struct B {
  B (int x, int y = U::a ()->c (0)) : b (y) { }
  int b;
};

void foo ()
{
  B<false> f (1);
}

compiles with g++ 2.96-RH and 3.2.3-RH, but ICEs in 3.3, 3.4 and on the trunk.

-- 
           Summary: [3.3/3.4/3.5 regression] ICE in find_function_data
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: any


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]