This is the mail archive of the gcc-patches@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]

Re: G++ PATCH: -Wcast-align giving false positives


>>>>> "Nathan" == Nathan Sidwell <nathan@acm.org> writes:

    Nathan> You're correct, C++ does not _require_ the pointers to
    Nathan> point to complete types, but if the pointed to type is
    Nathan> completable, it should be (and a template type be
    Nathan> instantiated). 

That's a question for the standard to answer.  Sometimes, programs can
rely on types *not* being instantiated.  To answer this, we'll need an
analysis of the standard.

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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