This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
3rd try: 990314 still has ctor default arg problem
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: 3rd try: 990314 still has ctor default arg problem
- From: "Jerry Quinn" <jquinn at nortelnetworks dot com>
- Date: Tue, 16 Mar 1999 13:34:14 -0500
- Organization: Nortel Technology
On hppa2.0-hp-hpux10.20, binutils 2.9.1 - config.status for egcs has:
#!/bin/sh
# This file was generated automatically by configure. Do not edit.
# This directory was configured as follows:
../src/configure
--with-gcc-version-trigger=/opt/corp/local/tmp/jquinn/egcs/snap
shot/src/gcc/version.c --host=hppa2.0-hp-hpux10.20
--prefix=/opt/corp/local/tmp/
jquinn/egcs/snapshot --with-gnu-as --enable-languages=c,c++,f77
--norecursion
# using "mh-frag"
This is the 3rd snapshot that still has this problem. Has anyone seen
the previous two bug reports? In this example, utl_getopt has a default
argument in the constructor that is totally ignored. HPCC and HP aCC
both compile this as I would expect.
build it with:
g++ junk.cc getopt.cc
then run:
a.out -g junk
The output should be:
found
end of getopt
The default argument '-' (ascii 45) appears to be in the assembly file
junk.s. I can't follow the function call stuff well enough to know
what's happening to in between the call to the constructor and the
constructor function itself.
The program does exactly the same thing on a B180 pa1.1 machine so it's
not specific to 2.0.
--
Jerry Quinn Tel: (514) 761-8737
jquinn@nortelnetworks.com Fax: (514) 761-8505
Speech Recognition Research
bug.tar.gz