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]

bug-report



This small program 'test.C' implements some generic callbacks for C++, but it
does not work on Solaris.

The output should be:
test: 1, 2, 3, 4
but on solaris it writes
test: 138840, 1, 2, 3

Somehow the member function arguments is shift one place to the right.
This code works well on AIX 4.2.1, IBM model 241 (200 MHz PowerPC), with gcc
2.8.1 and egcs 1.1b.

-------------------------
egcs version is 1.1b
Sun SparcStation Ultra5 (270 MHz)
  Hostname: ods28
  Hostid: 809eebda
  Release: 5.6
  Kernel architecture: sun4u
  Application architecture: sparc
  Hardware provider: Sun_Microsystems
  Domain: .oedan.dk
  Kernel version: SunOS 5.6 Generic 105181-08 July 1998
command line: /usr/local/egcs/bin/gcc --save-temps test.C
-------------------------

all temp and source files is attached.

One other thing, it does not work with gcc 2.8.1 on eihter solaris 2.5.1 or
solaris 2.6.


Is this a bug or what?

best regards,
--------------------------------------------------------------------------
 Klavs Wismann             -------------
 Odegaard A/S             |   /\        |    telephone:  +45 35 26 60 11     
 1, Kroghsgade            |__/  \  /\___|      telefax:  +45 35 26 50 18
 2100 Copenhagen East     |      \/     |       e-mail:      kw@oedan.dk
 Denmark                   -------------     home page: www.oedegaard.com
--------------------------------------------------------------------------

test.C


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