public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31048]  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:52 ` [Bug c++/31048] " tbm at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ 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 (see case17.s) 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=31048


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

* [Bug c++/31048] G++ 4.1.1 forgets to allocate memory (skips part of user code)
  2007-03-05 17:16 [Bug c++/31048] 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:52 ` tbm at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: tbm at gcc dot gnu dot org @ 2007-03-05 17:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from tbm at gcc dot gnu dot org  2007-03-05 17:51 -------


*** This bug has been marked as a duplicate of 31049 ***


-- 

tbm at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2007-03-05 17:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-05 17:16 [Bug c++/31048] 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:52 ` [Bug c++/31048] " tbm 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).