[llvm-bugs] [Bug 46341] Name resolution issue for inherited member in local class of templated function

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jun 16 08:38:59 PDT 2020


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

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

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

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
This code is invalid. See
http://clang.llvm.org/compatibility.html#dep_lookup_bases or
https://eli.thegreenplace.net/2012/02/06/dependent-name-lookup-for-c-templates
for an explanation.

Use this->f to name f as a member of a dependent base class.

-- 
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/20200616/e17a99a5/attachment.html>


More information about the llvm-bugs mailing list