[llvm-bugs] [Bug 47569] 'const' qualifier on referenced decltype(type) isn't allowed by clang++

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Sep 17 19:35:52 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47569

hstong at ca.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED
                 CC|                            |hstong at ca.ibm.com

--- Comment #1 from hstong at ca.ibm.com ---
> Replacing decltype(X::u[0][0][0]) with "unsigned" helps, but
> decltype(X::u[0][0][0]) resolves to the same "unsigned" which should make
> "const decltype(X::u[0][0][0])&" equivalent to "const unsigned&".

That's not true. `decltype(X::u[0][0][0])` resolves to "unsigned &".

-- 
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/20200918/1236ba84/attachment.html>


More information about the llvm-bugs mailing list