Re: The C++ FE drops qualifiers on pointer dereference

2009-07-17 Thread Jason Merrill
On 07/17/2009 03:26 PM, Richard Guenther wrote: Where can this be fixed? I currently have a hack to not strip restrict qualifiers in decay_conversion, but that feels a little too hackish. What's the important piece of decay_conversion that is necessary for indirect refs? Well, I'd start by ma

The C++ FE drops qualifiers on pointer dereference

2009-07-17 Thread Richard Guenther
The C++ frontend drops qualifiers when performing pointer dereference: void foo(int * __restrict p, int * __restrict__ q, int i) { *q = p[i]; } ;; Function void foo(int*, int*, int) (null) ;; enabled by -tree-original <>> >>; while this isn't a big issue for the plain *q (the cast is stripp