[llvm-bugs] [Bug 25694] Clang 3.6 regression: noexcept expression doesn't seem to pick up global function overload

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 15 15:42:49 PST 2015


Nikola Smiljanić <popizdeh at gmail.com> changed:

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

--- Comment #2 from Nikola Smiljanić <popizdeh at gmail.com> ---
I don't think this is a bug:

9.2 p2: A class is considered a completely-defined object type (3.9) (or
complete type) at the closing } of the class-specifier.
Within the class member-specification, the class is regarded as complete within
function bodies,
default arguments, using-declarations introducing inheriting constructors
(12.9), exception-specifications...

Name lookup is postponed until the class is fully parsed at which point member
function is declared. Name lookup selects this class as per 3.4.1 p1:

In all the cases listed in 3.4.1, the scopes are searched for a declaration in
the order listed in each of the respective categories; name lookup ends as soon
as a declaration is found for the name.

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/20151215/93474251/attachment.html>

More information about the llvm-bugs mailing list