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

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Apr 7 13:46:00 GMT 2004

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


More information about the Gcc-bugs mailing list