[LLVMbugs] [Bug 18079] default template argument privacy

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 27 12:56:41 PST 2013


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

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

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

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
(In reply to comment #0)
> Which is correct? Since Clang differs from the two major implementations, my
> guess would be that Clang was in the wrong, but I don't really know how to
> read the C++ spec to be sure...

MSVC is not known for its conformance, and in this case, it and GCC are wrong.
EDG agrees with Clang.

[class.access](11)/9:

"The names in a default template-argument (14.1) have their access checked in
the context in which they appear rather than at any points of use of the
default template-argument."

(Followed by an example that is nearly an exact match of yours.)

-- 
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/20131127/b0f4b07d/attachment.html>


More information about the llvm-bugs mailing list