g++ template problem

2006-01-30 Thread Ray Price
Hi, I'm struggling with trying to get g++ (4.0.3 20051201 (prerelease) (Debian 4.0.2-5)) to compile the following code (which MSVC6 and SunForte have no problem with): #include map templateclass T class rc { public: rcT() {} }; class SString { public: SString() {} }; class

Processing of gcc-4.1_4.1ds7-0exp7_sparc.changes

2006-01-30 Thread Archive Administrator
gcc-4.1_4.1ds7-0exp7_sparc.changes uploaded successfully to localhost along with the files: gcc-4.1-base_4.1-0exp7_sparc.deb libgcc1_4.1-0exp7_sparc.deb lib64gcc1_4.1-0exp7_sparc.deb cpp-4.1_4.1-0exp7_sparc.deb protoize_4.1-0exp7_sparc.deb fixincludes_4.1-0exp7_sparc.deb

Bug#350636: gcc-4.0: compiles wrong code with -O2

2006-01-30 Thread Thorsten Jordan
Package: gcc-4.0 Version: 4.0.2-8 Severity: normal i am reading from a stream in c++. The read values differ depending on compiler optimization level. Note that i have a little endian machine (x86)! take this code inline uint32_t read_u32(istream in) { uint32_t i; in.read((char*)i, 4);

Bug#350636: code that reproduces the bug and more info

2006-01-30 Thread Thorsten Jordan
I was able to reproduce the bug with the following code (compile: g++ -Wall -O2 x.cpp) #include stdio.h #include fstream typedef unsigned int Uint32; inline Uint32 read_u32(std::istream in) { Uint32 i; in.read((char*)i, 4); return i; } inline float

Re: g++ template problem

2006-01-30 Thread Philip Martin
templateclass C class mymap { public: typedef std::mapSString, rcC mmap; typedef rcC rcC; typedef std::mapSString, rcC mmap2; mymapC() { tmap::const_iterator ti; mmap::const_iterator mi; // error: expected `;' before 'mi'

Bug#350636: marked as done (gcc-4.0: compiles wrong code with -O2)

2006-01-30 Thread Debian Bug Tracking System
Your message dated Tue, 31 Jan 2006 00:53:09 +0100 with message-id [EMAIL PROTECTED] and subject line Bug#350636: code that reproduces the bug and more info has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the

Re: what's up with gcc 3.3 and 3.4 ?

2006-01-30 Thread Steve M. Robbins
On Sat, Jan 28, 2006 at 09:51:02PM +0100, Matthias Klose wrote: Steve M. Robbins writes: Package ccmalloc explicitly build-depends on all supported C++ compilers because it builds a specific module for each. Two bugs have been filed against it suggesting that g++-3.3 (BTS 343034) and

Re: what's up with gcc 3.3 and 3.4 ?

2006-01-30 Thread Steve Langasek
On Mon, Jan 30, 2006 at 09:41:05PM -0500, Steve M. Robbins wrote: On Sat, Jan 28, 2006 at 09:51:02PM +0100, Matthias Klose wrote: Steve M. Robbins writes: Package ccmalloc explicitly build-depends on all supported C++ compilers because it builds a specific module for each. Two bugs