This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: G++ PATCH: -Wcast-align giving false positives
- To: nathan at cs dot bris dot ac dot uk, nathan at acm dot org
- Subject: Re: G++ PATCH: -Wcast-align giving false positives
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Sat, 11 Dec 1999 09:21:38 -0800
- Cc: jason at cygnus dot com, egcs-patches at egcs dot cygnus dot com
- Organization: CodeSourcery, LLC
- References: <38512679.8C417D58@acm.org><u99032mz2a.fsf@yorick.cygnus.com><38522EF8.9E94650B@acm.org>
>>>>> "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