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

Richard Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <[email protected]> ---
(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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to