Failure to deal with using and private inheritance

2003-07-23 Thread foskey

>Submitter-Id:  net
>Originator:ken
>Organization:  OpenOffice.org
>Confidential:  no
>Synopsis:  Failure to deal with using and private inheritance
>Severity:  serious
>Priority:  
>Category:  c++
>Class: rejects-legal
>Release:   3.3.1 20030626 (Debian prerelease) (Debian testing/unstable)
>Environment:
System: Linux gandalf 2.4.20 #4 Mon Apr 7 22:21:12 EST 2003 i686 GNU/Linux
Architecture: i686


host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: ../src/configure -v 
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr 
--mandir=/usr/share/man --infodir=/usr/share/info 
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib 
--enable-nls --without-included-gettext --enable-__cxa_atexit 
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm 
--enable-java-awt=xlib --enable-objc-gc i386-linux
>Description:

Code following works in gcc 3.2 but not in gcc 3.3.1,  worked in gcc 3.3.0.

gcctest.cpp: In member function `void INetContentTypeParameterList::Clear()':
gcctest.cpp:21: error: cannot call member function `int Container::Count()'
   without object
gcctest.cpp:22: error: cannot call member function `int Container::Count()'
   without object

>How-To-Repeat:
  class Contained {};

class Container {
public:
int Count();
void* Remove(int);
};

class List : private Container {
public:
using Container::Count;
using Container::Remove;
};

class INetContentTypeParameterList : private List {
public:
void Clear();
};

void INetContentTypeParameterList::Clear() {
while (Count())
delete static_cast(Remove(Count() - 1));
}

int main() {
INetContentTypeParameterList ilist;
ilist.Clear();
}

>Fix:





Bug#184175: gcc-3.3 not properly installed

2003-03-10 Thread Ken Foskey
Package: gcc-3.3
Version: Unknown - Unstable

I have just installed gcc-3.3 and it does not have a proper setup and
there is no compiler.  I cannot do an apt-cache show gcc-3.3. 
Interesting result really...


-- 
Thanks
KenF
OpenOffice.org developer





Bug#184175: acknowledged by developer (Re: Bug#184175: gcc-3.3 not properly installed)

2003-03-10 Thread Ken Foskey
My first time doing this but this should work properly as far as I can
understand.  There is a broken dependency in the source.

gandalf: /etc/apt
$ apt-get build-dep gcc-3.3
Reading Package Lists... Done
Building Dependency Tree... Done
Sorry, bison is already the newest version.
0 packages upgraded, 0 newly installed, 0 to remove and 7  not upgraded.
 
gandalf: /etc/apt
$ apt-get -b source gcc-3.3
Reading Package Lists... Done
Building Dependency Tree... Done
Need to get 22.5MB of source archives.
Get:1 http://ftp.au.debian.org unstable/main gcc-3.3 1:3.3ds0-0pre0
(dsc) [1887B]
Get:2 http://ftp.au.debian.org unstable/main gcc-3.3 1:3.3ds0-0pre0
(tar) [20.6MB]
Get:3 http://ftp.au.debian.org unstable/main gcc-3.3 1:3.3ds0-0pre0
(diff) [1936kB]
Fetched 3B in 0s (4B/s)
Skipping unpack of already unpacked source in gcc-3.3-3.3ds0
dpkg-buildpackage: source package is gcc-3.3
dpkg-buildpackage: source version is 1:3.3ds0-0pre0
dpkg-buildpackage: source maintainer is Matthias Klose <[EMAIL PROTECTED]>
dpkg-buildpackage: host architecture is i386
dpkg-checkbuilddeps: Unmet build dependencies: libgc6-dev
dpkg-buildpackage: Build dependencies/conflicts unsatisfied; aborting.
dpkg-buildpackage: (Use -d flag to override.)
Build command 'cd gcc-3.3-3.3ds0 && dpkg-buildpackage -b -uc' failed.
E: Child process failed


-- 
Thanks
KenF
OpenOffice.org developer





Bug#184175: acknowledged by developer (Re: Bug#184175: gcc-3.3 not properly installed)

2003-03-11 Thread Ken Foskey
On Tue, 2003-03-11 at 17:47, Matthias Klose wrote:
> what, if you get libgc6-dev manually, then
> 
>   apt-get source gcc-3.3

On intel platform...

Installing the libgc6-dev package solves the basic build problem:


dpkg-deb: building package `gcc-3.3-base' in
`../gcc-3.3-base_3.3-0pre0_i386.deb'.
touch stamps/08-binary-stamp-base
make[1]: Leaving directory `/etc/apt/gcc-3.3-3.3ds0'
 dpkg-genchanges -b
dpkg-genchanges: binary-only upload - not including any source code
dpkg-buildpackage: binary only upload (no source included)



Install is still getting from the ftp server...

Get:1 http://ftp.au.debian.org unstable/main gcc-3.3-base 1:3.3-0pre0
[42.1kB]

How do I change this?  Can I build and install in one step?

-- 
Thanks
KenF
OpenOffice.org developer





Bug#279185: g++-3.4: g++ Fails to compile valid code

2004-11-01 Thread Ken Foskey
Package: g++-3.4
Version: 3.4.2-3
Severity: important

namespace a {}
namespace b {}
namespace c {
   namespace a = b;
}

This fails to compile with:

$ gcc-3.4 test.cpp
test.cpp:4: error: declaration of `namespace a' conflicts with
test.cpp:1: error: previous declaration of `namespace a' here

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.8
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages g++-3.4 depends on:
ii  gcc-3.4 3.4.2-3  The GNU C compiler
ii  gcc-3.4-base3.4.2-3  The GNU Compiler Collection (base 
ii  libc6   2.3.2.ds1-18 GNU C Library: Shared libraries an
ii  libstdc++6-dev  3.4.2-3  The GNU Standard C++ Library v3 (d

-- no debconf information




Bug#279185: Please note openoffice.org affected

2004-11-01 Thread Ken Foskey

This bug stops OpenOffice.org being compiled by gcc 3.4 (unstable)

-- 
Ken Foskey
OpenOffice.org developer





Bug#279185: Confirming fixed

2004-12-04 Thread Ken Foskey
Thank you.

-- 
Ken Foskey





internal error - gcc 3.2.3, debian unstable

2003-07-18 Thread Ken Foskey
>Submitter-Id:  net
>Originator:    Ken Foskey
>Organization:  OpenOffice.org
>Confidential:  no
>Synopsis:  Crash in gcc 3.2
>Severity:  critical
>Priority:   medium
>Category:  c++
>Class: ice-on-legal-code

>Release:   3.2.3 (Debian) (Debian testing/unstable)
>Environment:
System: Linux gandalf 2.4.20 #4 Mon Apr 7 22:21:12 EST 2003 i686
GNU/Linux
Architecture: i686


host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: ../src/configure -v
--enable-languages=c,c++,f77,objc,ada --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.2 --enable-shared
--with-system-zlib --enable-nls --without-included-gettext
--enable-__cxa_atexit --enable-clocale=gnu --enable-objc-gc i386-linux
>Description:
Standard build of OpenOffice.org,  compiler crashes
>How-To-Repeat:
ccache g++-3.2 -fmessage-length=0 -c -I.  -I. -I../inc -I../../inc
-I../../unx/inc -I../../unxlngi4.pro/inc -I.
-I/data3/office/solver/645/unxlngi4.pro/inc/stl
-I/data3/office/solver/645/unxlngi4.pro/inc/external
-I/data3/office/solver/645/unxlngi4.pro/inc
-I/data3/office/solenv/unxlngi4/inc -I/data3/office/solenv/inc
-I/data3/office/res -I/data3/office/solver/645/unxlngi4.pro/inc/stl
-I/data3/office/solenv/inc/Xp31 -I/opt/jdk/include
-I/opt/jdk/include/linux -I/opt/jdk/include/native_threads/include
-I/usr/X11R6/include -I. -I../../res -I. -g1 -O1  -pipe
-mcpu=pentiumpro -fno-for-scope -fpermissive -fno-rtti -include
preinclude.h -fno-exceptions   -fpic -DLINUX -DUNX -DVCL -DGCC -DC300
-DINTEL -DCVER=C300 -D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS
-D_REENTRANT -DNEW_SOLAR -D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400
-D__DMAKE -DUNIX -DCPPU_ENV=gcc3 -DSUPD=645 -DBUILD=8651 -DPRODUCT
-DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_OFF
-DCUI -DSOLAR_JAVA -DSRX645 -DUSE_BUILTIN_RASTERIZER -DENABLE_CTL
-DSHAREDLIB -D_DLL_  -DMULTITHREAD   -o ../../unxlngi4.pro/slo/fontcvt.o
/data3/office/vcl/source/gdi/fontcvt.cxx
/data3/office/solver/645/unxlngi4.pro/inc/stl/stl/_tree.c:374: Internal
compiler error in dwarf2out_finish, at dwarf2out.c:12193
Please submit a full bug report,
with preprocessed source if appropriate.

>Fix:




-- 
Thanks
KenF
OpenOffice.org developer


fontcvt.ii.bz2
Description: application/bzip


Bug#202696: [Bug c++/11645] [3.3/3.4 Regression] Failure to deal with using and private inheritance

2003-07-24 Thread Ken Foskey
Package: g++
Version:  3:3.3-2
Severity:  important
Tags: patch

There is an upstream fix for gcc 3.3.1 so that OpenOffice.org can
actually compile.  This has been committed to the gcc cvs.  Could a new
version be released with this feature.

Thanks
KenF





Bug#202696: confirming resolved.

2003-07-30 Thread Ken Foskey


OpenOffice.org now compiles iwth gcc 3.3.1 thanks.

-- 
Thanks
KenF
OpenOffice.org developer





Bug#225663: conflict with enum and function as well.

2004-01-01 Thread Ken Foskey
Below are messages.  enum contains remove within a named enum and remove
is a function.  In c++ there is no conflict.

Making: ../../unxlngi4.pro/slo/basicparser.obj
ccache g++-3.3 -fmessage-length=0 -c -I.  -I. -I../inc -I../../source/inc
-I../../inc -I../../unx/inc -I../../unxlngi4.pro/inc -I.
-I/data/office/solver/680/unxlngi4.pro/inc/stl
-I/data/office/solver/680/unxlngi4.pro/inc/external
-I/data/office/solver/680/unxlngi4.pro/inc -I/data/office/solenv/unxlngi4/inc
-I/data/office/solenv/inc -I/data/office/res
-I/data/office/solver/680/unxlngi4.pro/inc/stl -I/data/office/solenv/inc/Xp31
-I/opt/jdk/include -I/opt/jdk/include/linux
-I/opt/jdk/include/native_threads/include -I/usr/X11R6/include -I.
-I../../res -I. -g -g -O   -pipe -mcpu=pentiumpro -fpermissive -fno-rtti
-include preinclude.h -fexceptions -fno-enforce-eh-specs   -fpic -DLINUX -DUNX
-DVCL -DGCC -DC300 -DINTEL -DGXX_INCLUDE_PATH=/usr/include/c++/3.3 -DCVER=C300
-D_USE_NAMESPACE -DGLIBC=2 -DX86 -D_PTHREADS -D_REENTRANT -DNEW_SOLAR
-D_USE_NAMESPACE=1 -DSTLPORT_VERSION=400 -D__DMAKE -DUNIX -DCPPU_ENV=gcc3
-DSUPD=680 -DBUILD=8727 -DDEBUG -DPRODUCT -DNDEBUG -DPRODUCT_FULL
-DOSL_DEBUG_LEVEL=2 -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRC680  -DSHAREDLIB
-D_DLL_  -DMULTITHREAD  -o ../../unxlngi4.pro/slo/basicparser.o
/data/office/configmgr/source/xml/basicparser.cxx
In file included from /data/office/configmgr/source/xml/elementparser.hxx:66,
 from /data/office/configmgr/source/xml/basicparser.hxx:66,
 from /data/office/configmgr/source/xml/basicparser.cxx:62:
/data/office/configmgr/source/xml/elementinfo.hxx:119: error: `remove'
redeclared as different kind of symbol
/usr/include/stdio.h:152: error: previous declaration of `int remove(const 
char*)'
dmake:  Error code 1, while making '../../unxlngi4.pro/slo/basicparser.obj'

--- Additional comments from waratah Wed Dec 31 15:42:08 -0800 2003
---
Code is...

namespace Operation
{
enum Enum
{
none,

modify,
clear,

replace,
remove,

unknown
};
}
-- 
Thanks
KenF
OpenOffice.org developer





Bug#225663: gcc 3.3 pre0 was fine however pre1 was not

2004-01-01 Thread Ken Foskey

Just to isolate the problem some more the issue was NOT present in
gcc3.3.3pre0 it appeared in pre1.


-- 
Thanks
KenF
OpenOffice.org developer