This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]