[llvm-bugs] [Bug 42365] New: using declaration issue in nested inheritance context

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jun 23 18:34:58 PDT 2019


            Bug ID: 42365
           Summary: using declaration issue in nested inheritance context
           Product: clang
           Version: 8.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ankur.dedev at tuta.io
                CC: blitzrakete at gmail.com, dgregor at apple.com,
                    erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

The following code does not compile with clang 8:

struct Bar
  struct EmptyBar {};

  void test(EmptyBar) const {}

template<typename TYPE>
struct Foo : TYPE
  struct Derived;

  struct EmptyFoo {};

  using TYPE::test;

  void test(EmptyFoo) const {}

template<typename TYPE>
struct Foo<TYPE>::Derived : Foo<TYPE>
  struct EmptyDerived {};

  using Foo<TYPE>::test;

  void test(EmptyDerived) const {}

int main()
  Bar::EmptyBar empty;

  Foo<Bar>::Derived obj;


  return 0;

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/20190624/a0938dd5/attachment.html>

More information about the llvm-bugs mailing list