Bug#169497: libstdc++5: g++-3.2 and libstdc++5 are useless on sparc

2002-11-17 Thread James Morrison
Package: libstdc++5
Version: 1:3.2.1-0pre6
Severity: grave
Justification: renders package unusable

 I can't compile anything using g++-3.2 anymore.
Here is a program:

#include 
#include 

using namespace std;

int main(int argc, char *argv[]) {

string me("0123456789");
cout << me << me.length() << endl;
}

Here is the command line:
 g++-3.2 -o stringc++ stringc++.cc

Here is the output:
In file included from /usr/include/c++/3.2/bits/locale_facets.tcc:41,
 from /usr/include/c++/3.2/locale:46,
 from /usr/include/c++/3.2/bits/ostream.tcc:37,
 from /usr/include/c++/3.2/ostream:275,
 from /usr/include/c++/3.2/iostream:45,
 from string++.cc:2:
/usr/include/c++/3.2/cmath: In function `long double std::acos(long double)':
/usr/include/c++/3.2/cmath:109: `::acosl' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::asin(long double)':
/usr/include/c++/3.2/cmath:127: `::asinl' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::atan(long double)':
/usr/include/c++/3.2/cmath:145: `::atanl' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::atan2(long double, 
   long double)':
/usr/include/c++/3.2/cmath:164: `::atan2l' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::ceil(long double)':
/usr/include/c++/3.2/cmath:183: `::ceill' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::cosh(long double)':
/usr/include/c++/3.2/cmath:211: `::coshl' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::exp(long double)':
/usr/include/c++/3.2/cmath:229: `::expl' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::floor(long double)':
/usr/include/c++/3.2/cmath:257: `::floorl' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::fmod(long double, 
   long double)':
/usr/include/c++/3.2/cmath:276: `::fmodl' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::frexp(long double, 
   int*)':
/usr/include/c++/3.2/cmath:295: `::frexpl' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::ldexp(long double, 
   int)':
/usr/include/c++/3.2/cmath:315: `::ldexpl' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::log(long double)':
/usr/include/c++/3.2/cmath:334: `::logl' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::log10(long double)':
/usr/include/c++/3.2/cmath:352: `::log10l' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::modf(long double, 
   long double*)':
/usr/include/c++/3.2/cmath:376: `::modfl' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::pow(long double, long 
   double)':
/usr/include/c++/3.2/cmath:410: `::powl' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::sinh(long double)':
/usr/include/c++/3.2/cmath:451: `::sinhl' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::tan(long double)':
/usr/include/c++/3.2/cmath:479: `::tanl' undeclared (first use here)
/usr/include/c++/3.2/cmath: In function `long double std::tanh(long double)':
/usr/include/c++/3.2/cmath:497: `::tanhl' undeclared (first use here)


James A. Morrison


-- System Information:
Debian Release: testing/unstable
Architecture: sparc
Kernel: Linux squirrel 2.4.19 #1 Sat Oct 5 15:26:43 EDT 2002 sparc64
Locale: LANG=C, LC_CTYPE=C

Versions of packages libstdc++5 depends on:
ii  gcc-3.2-base   1:3.2.1-0pre6 The GNU Compiler Collection (base 
ii  libc6  2.2.5-15  GNU C Library: Shared libraries an
ii  libc6-sparc64  2.2.5-15  GNU C Library: 64bit Shared librar
ii  libgcc11:3.2.1-0pre6 GCC support library.

-- no debconf information





Bug#219505: a smaler test case

2003-11-06 Thread James Morrison

 Here is a smaller test case:

Jim

#include 

class base
{

};

class clone : public base
{
protected:
base *cloned;
public:
clone(base *_cloned) : cloned(_cloned) { }

};

class derive : public base
{

};

class cloner : public clone
{
derive *&foo;

public:
cloner() : clone(0), foo(static_cast(cloned)) {  
printf("%p:%p\n", &cloned, &foo); }
};

int main(int argc, char *argv[])
{
cloner bar;
return 0;
}