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]

bug 2645 and restrict


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


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