[Bug c++/31045] gcc4.1. has problems with pointers

tbm at cyrius dot com gcc-bugzilla@gcc.gnu.org
Mon Mar 5 17:49:00 GMT 2007



------- Comment #2 from tbm at cyrius dot com  2007-03-05 17:48 -------
This works just fine here.  Can you please show the exact error message you get
and the output of g++ -v

20816:tbm@deprecation: ~/tmp/src] cat t.c
#include <cstdlib>

int main() {
        char **const p = (char **)std::malloc(sizeof*p);
        return !p;
}
20817:tbm@deprecation: ~/tmp/src] g++-4.1 -c t.c
20818:tbm@deprecation: ~/tmp/src] g++-4.1 -c -O2 t.c
20819:tbm@deprecation: ~/tmp/src]


-- 

tbm at cyrius dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tbm at cyrius dot com


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



More information about the Gcc-bugs mailing list