This is the mail archive of the gcc@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]

Re: Bug in egcs?


>>>>> "Jason" == Jason Merrill <jason@cygnus.com> writes:

    >> Nope, it yields another error:

    >> test.cpp:13: sorry, not implemented: `cleanup_point_expr' not
    >> supported by dump_expr

    Jason> Ah.

[patch removed]

Your last patch almost fix it (I tested it with 971207 patched up to
971215). As before, by commenting out the line:

  SomeClass_t () : x (11) {}

it will compile fine. With your latest patch, the compiler does not
complain about that constructor, but it suddenly complains about the
following line instead:

  DynamicOnly_t* ptr = DynamicOnly_t::create ();

The message it gives is:

test.cpp:26: sorry, not implemented: initializer contains unrecognized
tree code

For completeness sake, I have included another copy of the test
program.

Anyway - thanks for helping out!

Marius

-- Test program test.cpp --

#include <string.h>

class SomeClass_t {
public:
  SomeClass_t () : x (11) {}
protected:
  float x;
};

class DynamicOnly_t {
public:
  static DynamicOnly_t* create (const char* name = "UNDEF",
				const SomeClass_t& somec = *(new SomeClass_t ())) {
    return new DynamicOnly_t (name, somec);
  }
  DynamicOnly_t (const char* name, const SomeClass_t& somec) :
    m_somec (somec) {
    strncpy (m_Name, name, sizeof (m_Name));
  }
private:
  SomeClass_t m_somec;
  char m_Name[255];
};

int main (int argc, char* argv[]) {
  DynamicOnly_t* ptr = DynamicOnly_t::create ();
  return 0;
}



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