This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31045] gcc4.1. has problems with pointers
- From: "tbm at cyrius dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Mar 2007 17:48:51 -0000
- Subject: [Bug c++/31045] gcc4.1. has problems with pointers
- References: <bug-31045-12095@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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