This is the mail archive of the gcc@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: bug 2645 and restrict


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


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