[llvm-bugs] [Bug 40622] New: issue with access specifier

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Feb 5 17:41:40 PST 2019


https://bugs.llvm.org/show_bug.cgi?id=40622

            Bug ID: 40622
           Summary: issue with access specifier
           Product: clang
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          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 7:


class Foo
{
private:

  template<typename TYPE>
  static TYPE get();

public:

  template<typename TYPE>
  using Type_t = decltype(get<TYPE>());
};

int main()
{
  using Local_t = Foo::Type_t<int>;

  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/20190206/ab11d306/attachment.html>


More information about the llvm-bugs mailing list