This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
bug 2645 and restrict
- To: gcc at gcc dot gnu dot org
- Subject: bug 2645 and restrict
- From: Nathan Sidwell <nathan at codesourcery dot com>
- Date: Thu, 26 Apr 2001 10:08:59 +0100
- CC: mark at codesourcery dot com, jason at redhat dot com, gdr at codesourcery dot com
- Organization: Codesourcery LLC
Hi,
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?
The standard says
typedef int &ref_t;
ref_t const thing = i;
is legal, and thing has type `int &'. so, should
typedef int i_t;
i_t __restrict__ thing;
be legal with thing having type `int'?
nathan
--
Dr Nathan Sidwell :: http://www.codesourcery.com :: CodeSourcery LLC
'But that's a lie.' - 'Yes it is. What's your point?'
nathan@codesourcery.com : http://www.cs.bris.ac.uk/~nathan/ : nathan@acm.org