bug 2645 and restrict
Jason Merrill
jason_merrill@redhat.com
Thu Apr 26 08:12:00 GMT 2001
>>>>> "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. __restrict__ implies a property which only
pointers can have, so getting another kind of type is probably a bug.
Jason
More information about the Gcc
mailing list