bug 2645 and restrict
Gabriel Dos Reis
gdr@codesourcery.com
Thu Apr 26 09:10:00 GMT 2001
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
More information about the Gcc
mailing list