[llvm-bugs] [Bug 25992] Cannot call std::string::~string explicitly

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jan 7 14:32:52 PST 2016


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|WORKSFORME                  |---

--- Comment #3 from Richard Smith <richard-llvm at metafoo.co.uk> ---
This should work without the "using namespace std;", and should *not* work if
you use

  obj->std::string::~basic_string().

(but see wg21.link/cwg399, which seeks to clarify these rules). Per
[basic.lookup.qual]p6, "in a qualified-id of the form:

  nested-name-specifier[opt] class-name :: ~ class-name

the second class-name is looked up in the same scope as the first."

-- 
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/20160107/348100fe/attachment-0001.html>


More information about the llvm-bugs mailing list