Package: g++
Version: 2:2.95.4-15

Description: 

  g++ -pedantic-errors -D_GNU_SOURCE  throws an error while attempting
  to #include <complex>.

Demonstration:

(stephan)profjury:~/tmp/g++bug> cat bug.cc

#include <complex>

(stephan)profjury:~/tmp/g++bug> g++ -v -c -pedantic-errors -D_GNU_SOURCE bug.cc
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
gcc version 2.95.4 20011002 (Debian prerelease)
 /usr/lib/gcc-lib/i386-linux/2.95.4/cpp0 -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 
-D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ 
-D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTI
ONS -pedantic-errors -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D_G
NU_SOURCE bug.cc /data/tmp/cc0irnDW.ii
GNU CPP version 2.95.4 20011002 (Debian prerelease) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3
 /usr/local/include
 /usr/lib/gcc-lib/i386-linux/2.95.4/include
 /usr/include
End of search list.
The following default directories have been omitted from the search path:
 /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../i386-linux/include
End of omitted list.
 /usr/lib/gcc-lib/i386-linux/2.95.4/cc1plus /data/tmp/cc0irnDW.ii -quiet -dumpba
se bug.cc -pedantic-errors -version -o /data/tmp/ccIdpjZL.s
GNU C++ version 2.95.4 20011002 (Debian prerelease) (i386-linux) compiled by GNU
 C version 2.95.4 20011002 (Debian prerelease).
In file included from /usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++
-3/complex:7,
                 from bug.cc:2:
/usr/lib/gcc-lib/i386-linux/2.95.4/../../../../include/g++-3/std/complext.h:314:
 declaration of `hypot(double, double)' throws different exceptions
/usr/include/bits/mathcalls.h:150: previous declaration here


Installation:

(stephan)profjury:~/tmp/g++bug> dpkg -l 'g++*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name               Version            Description
+++-==================-==================-====================================================
ii  g++                2.95.4-15          The GNU C++ compiler.
ii  g++-2.95           2.95.4-9           The GNU C++ compiler.
pn  g++-3.0            <none>             (no description available)
ii  g++-3.1            3.1.1-0pre2        The GNU C++ compiler.
(stephan)profjury:~/tmp/g++bug> dpkg -l 'libstdc*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name               Version            Description
+++-==================-==================-====================================================
un  libstdc++-dev      <none>             (no description available)
ii  libstdc++2.10      2.95.2-13          The GNU stdc++ library
pn  libstdc++2.10-dbg  <none>             (no description available)
ii  libstdc++2.10-dev  2.95.4-9           The GNU stdc++ library (development 
files)
ii  libstdc++2.10-glib 2.95.4-9           The GNU stdc++ library
un  libstdc++2.8-dev   <none>             (no description available)
un  libstdc++2.9-dev   <none>             (no description available)
pn  libstdc++2.9-glibc <none>             (no description available)
un  libstdc++2.9-glibc <none>             (no description available)
ii  libstdc++3         3.0.4-10           The GNU stdc++ library version 3
pn  libstdc++3-dbg     <none>             (no description available)
pn  libstdc++3-dev     <none>             (no description available)
pn  libstdc++3-doc     <none>             (no description available)
un  libstdc++3.0-dev   <none>             (no description available)
un  libstdc++3.0-doc   <none>             (no description available)
ii  libstdc++4         3.1.1-0pre2        The GNU stdc++ library version 3
pn  libstdc++4-dbg     <none>             (no description available)
ii  libstdc++4-dev     3.1.1-0pre2        The GNU stdc++ library version 3 
(development files)
ii  libstdc++4-doc     3.1.1-0pre2        The GNU stdc++ library version 3 
(documentation file


-- 
Stephan Böttcher                     FAX: +49-431-85660
Extraterrestrische Physik            Tel: +49-431-880-2508
I.f.Exp.u.Angew.Physik               mailto:[EMAIL PROTECTED]
Leibnizstr. 11, 24118 Kiel, Germany  http://www.nevis.columbia.edu/~stephan


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Reply via email to