[LLVMbugs] [Bug 17793] 'this' pointer incorrectly qualified inside of __restrict class member function

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Nov 3 19:36:24 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=17793

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Yup, it's the exact same thing. A more direct way to see the bug than either
testcase we have so far:

struct S {
  void f() __restrict {
    using T = decltype(this);
    using T = S *__restrict;
  }
};

Somewhat amusingly, decltype(this) is '__restrict S *' under clang, 'S
*__restrict' under gcc, and 'S *' under EDG. It's not obvious who's right here
(do 'restrict' qualifiers get dropped like cv-qualifiers when they apply to
rvalues?) but EDG's behavior seems more consistent with our behavior on
'restrict' elsewhere.

*** This bug has been marked as a duplicate of bug 17747 ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131104/9b0e5acf/attachment.html>


More information about the llvm-bugs mailing list