This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bug 2645 and restrict
- To: Jason Merrill <jason_merrill at redhat dot com>
- Subject: Re: bug 2645 and restrict
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- Date: 26 Apr 2001 18:09:55 +0200
- Cc: Nathan Sidwell <nathan at codesourcery dot com>, gcc at gcc dot gnu dot org, mark at codesourcery dot com, gdr at codesourcery dot com
- Organization: CodeSourcery, LLC
- References: <3AE7E5AB.6371CD8B@codesourcery.com> <m3bspjk872.fsf@prospero.cambridge.redhat.com>
Jason Merrill <jason_merrill@redhat.com> writes:
| >>>>> "Nathan" == Nathan Sidwell <nathan@codesourcery.com> writes:
|
| > bug 2645 concerns silently ignoring cv qualifiers on reference types
| > introduced via typedefs or template type args see [8.3.2]
| > Question. Should we apply the same logic to restrict on non-pointer/reference
| > types also introduced via typedefs or template type args?
|
| IMO, no. "const" implies a property which reference types already have, so
| it's reasonable to ignore it.
I don't agree. The description given by Nathan applies as well to
volatile.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com