[llvm] r244164 - Add a TrailingObjects template class.
İsmail Dönmez via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 6 23:52:54 PDT 2015
Hi,
On Thu, Aug 6, 2015 at 7:11 PM, James Y Knight <jyknight at google.com> wrote:
> That looks like a bug in VC++ (even the latest version on
> http://webcompiler.cloudapp.net/), I think.
>
> template<typename T>
> class Tmpl {
> protected:
> T foo() { return 0; }
> };
>
> class Test : private Tmpl<int> {
> public:
> // The next line reports: error C2876: 'Tmpl<int>': not all overloads are
> accessible
> using Tmpl::foo;
> // But, it WORKS if you instead do this, which I think should be equivalent:
> // using Tmpl<int>::foo;
> };
Reported as a VS bug
https://connect.microsoft.com/VisualStudio/feedback/details/1637097 ,
thanks for the testcase!
More information about the llvm-commits
mailing list