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

            Bug ID: 45281
           Summary: user defined deduction guide isn't found in case of
                    nested template class if outer template argument is
                    itself a template parameter
           Product: clang
           Version: trunk
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++17
          Assignee: unassignedclangb...@nondot.org
          Reporter: hol...@pirk.name
                CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
                    llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk

Following up on https://bugs.llvm.org/show_bug.cgi?id=34520, the following does
not work in clang: 
```
#include <string>

template <class>
struct Foo {
    template <class T>
    struct Bar {
        Bar(T) { }
    };
    Bar(char const*) -> Bar<std::string>;
};

int main() {
    Foo<int>::Bar bar("abc");
    static_cast<void>(bar);
}

template <typename T> void templated() { Foo<T>::Bar bar("abc"); };
```
It is the same example code but the last line is added. MSVC does not seem to
have this problem (according to godbolt.org).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to