[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#328939: g++-4.0: this bug still exist in gcc-snapshot



On 9/20/05, LI Daobing <lidaobing@gmail.com> wrote:
> package g++-4.0
> retitle 328939 [PR 21089]g++-4.0: do not optimize for a 'const double'
> thanks
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21089
>

This bug disappear in version 4.0.2-3. I think now you can close it.

$ dpkg -l g++-4.0 | grep ^ii
ii  g++-4.0        4.0.2-3        The GNU C++ compiler
$ g++ -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--program-suffix=-4.0 --enable-__cxa_atexit
--enable-libstdcxx-allocator=mt --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
--enable-mpfr --disable-werror --enable-checking=release
i486-linux-gnu
Thread model: posix
gcc version 4.0.3 20051023 (prerelease) (Debian 4.0.2-3)
$ cat const.cpp
//const.cpp

extern const double minute;

const double second = 1.0;
const double minute = 60.0 * second;
$ g++-4.0 -c const.cpp && nm const.o
00000000 R minute
--
LI Daobing



Reply to: