[Bug c++/29106] sizeof(*var) in expression drops entire line of code out of compile
deb at pixar dot com
gcc-bugzilla@gcc.gnu.org
Sat Sep 16 14:18:00 GMT 2006
------- Comment #1 from deb at pixar dot com 2006-09-16 14:18 -------
/*
Using built-in specs.
Target: x86_64-redhat-linux-gnu
Configured with: ../gcc-4.0.3/configure x86_64-redhat-linux-gnu
--prefix=/pixar/d2/sets/t\
ools-03 --exec-prefix=/pixar/d2/sets/tools-03
--bindir=/pixar/d2/sets/tools-03/bin --sbin\
dir=/pixar/d2/sets/tools-03/sbin --sysconfdir=/pixar/d2/sets/tools-03/etc
--datadir=/pixa\
r/d2/sets/tools-03/share --includedir=/pixar/d2/sets/tools-03/include
--libdir=/pixar/d2/\
sets/tools-03/lib --libexecdir=/pixar/d2/sets/tools-03/libexec
--localstatedir=/pixar/d2/\
sets/tools-03/var --sharedstatedir=/pixar/d2/sets/tools-03/com
--mandir=/pixar/d2/sets/to\
ols-03/man --infodir=/pixar/d2/sets/tools-03/info
--enable-version-specific-runtime-libs \
--enable-languages=c++,objc,f95 --enable-threads=posix --enable-shared
--enable-mudflap
Thread model: posix
gcc version 4.0.3
Compile as:
g++ bug.cpp
Issue:
Calll to printf left out. (Indeed, any line of code that
contains sizeof(*savepos) gets tossed on the floor. I assume
since sizeof() is a compile-time construct, something took this a bit
too far?
*/
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29106
More information about the Gcc-bugs
mailing list