public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31049]  New: G++ 4.1.1 forgets to allocate memory (skips part of user code)
@ 2007-03-05 17:16 satyaakam at yahoo dot co dot in
  2007-03-05 17:17 ` [Bug c++/31049] " satyaakam at yahoo dot co dot in
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: satyaakam at yahoo dot co dot in @ 2007-03-05 17:16 UTC (permalink / raw)
  To: gcc-bugs

Hi,
   We have problems using gcc 4.1.1. we are trying to compile a code in file
case17.cpp (see attached in testcase area). The problem is that compiler
forgets to call malloc and forgets to check the return value and it also
forgets to initialize pointer called color. That is we do not see the following
lines reflected in the assembly output:

char **const colorTable = (char **)std::malloc(ncolors*sizeof*colorTable),
**volatile color=colorTable;
if(colorTable); else { return *oldct = 0; }


-- 
           Summary: G++ 4.1.1 forgets to allocate memory (skips part of user
                    code)
           Product: gcc
           Version: 4.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: satyaakam at yahoo dot co dot in


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


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

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

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-05 17:16 [Bug c++/31049] New: G++ 4.1.1 forgets to allocate memory (skips part of user code) satyaakam at yahoo dot co dot in
2007-03-05 17:17 ` [Bug c++/31049] " satyaakam at yahoo dot co dot in
2007-03-05 17:52 ` tbm at gcc dot gnu dot org
2007-03-06 10:50 ` rguenth at gcc dot gnu dot org
2007-03-07 18:07 ` satyaakam at yahoo dot co dot in
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).