c++/4584: [2003-01-21] Using null pointers for fake addressof() generates warnings
bangerth@dealii.org
bangerth@dealii.org
Thu May 8 22:20:00 GMT 2003
Synopsis: [2003-01-21] Using null pointers for fake addressof() generates warnings
State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Thu May 8 22:05:45 2003
State-Changed-Why:
3.3 and present mainline say this:
g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c 2810-2.ii
<internal>:6: warning: invalid access to non-static data member `X::p' of NULL
object
<internal>:6: warning: (perhaps the `offsetof' macro was used incorrectly)
I think the warning is valid, but if you don't like it you're
of course free to shut it off.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4584
More information about the Gcc-bugs
mailing list