[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
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
r/d2/sets/tools-03/share --includedir=/pixar/d2/sets/tools-03/include
sets/tools-03/lib --libexecdir=/pixar/d2/sets/tools-03/libexec
sets/tools-03/var --sharedstatedir=/pixar/d2/sets/tools-03/com
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
Thread model: posix
gcc version 4.0.3

Compile as:
   g++ bug.cpp

   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?



More information about the Gcc-bugs mailing list