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]

realloc


Hi,

when compiling the attached C++ file  using

  gcc version egcs-2.90.29 980515 (egcs-1.0.3 release)

compile command:

  gcc -c -O realloc.C

I get the following internal compiler error:

realloc.C:8: warning: all member functions in class `A' are private
realloc.C: In method `void A::mymethod()':
realloc.C:6: Internal compiler error.
realloc.C:6: Please submit a full bug report to `egcs-bugs@cygnus.com'.

What is wrong? It seems to have to do something with the method name
'realloc' when enabling optimization.

Best regards,
Ruediger




class A {
  void realloc();
  void mymethod() {
    realloc();
  }
};

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