public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29106]  New: sizeof(*var) in expression drops entire line of code out of compile
@ 2006-09-16 14:17 deb at pixar dot com
  2006-09-16 14:18 ` [Bug c++/29106] " deb at pixar dot com
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: deb at pixar dot com @ 2006-09-16 14:17 UTC (permalink / raw)
  To: gcc-bugs

#include <stdio.h>

int main()
{
    int* const savepos = sizeof(*savepos) ? 0 : 0;

    // code for the next line is left out!
    printf("size of thingy is %d\n", sizeof(*savepos));
}

Any line of code containing sizeof(*savepos) gets stripped.   If you compile
and run this, nothing is printed.


-- 
           Summary: sizeof(*var) in expression drops entire line of code out
                    of compile
           Product: gcc
           Version: 4.0.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: deb at pixar dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29106


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-04-09 12:00 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-16 14:17 [Bug c++/29106] New: sizeof(*var) in expression drops entire line of code out of compile deb at pixar dot com
2006-09-16 14:18 ` [Bug c++/29106] " deb at pixar dot com
2006-09-16 23:42 ` pinskia at gcc dot gnu dot org
2006-09-16 23:45 ` [Bug c++/29106] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2006-09-17 19:27 ` pinskia at gcc dot gnu dot org
2006-10-27  9:47 ` rguenth at gcc dot gnu dot org
2006-10-27 23:16 ` janis at gcc dot gnu dot org
2006-11-01 18:28 ` mmitchel at gcc dot gnu dot org
2006-11-14  5:11 ` mmitchel at gcc dot gnu dot org
2006-11-14  5:17 ` [Bug c++/29106] [4.0 " mmitchel at gcc dot gnu dot org
2006-11-14 17:14 ` mmitchel at gcc dot gnu dot org
2006-11-14 17:15 ` mmitchel at gcc dot gnu dot org
2006-11-18 11:55 ` reichelt at gcc dot gnu dot org
2006-12-01  2:06 ` chaoyingfu at gcc dot gnu dot org
2007-01-27 18:05 ` patchapp at dberlin dot org
2007-01-27 19:59 ` reichelt at gcc dot gnu dot org
2007-01-31 23:03 ` reichelt at gcc dot gnu dot org
2007-04-09 12:00 ` reichelt at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).