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

            Bug ID: 46063
           Summary: Fail to deduce const auto templated variable
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: C++14
          Assignee: unassignedclangb...@nondot.org
          Reporter: gdu...@gmail.com
                CC: blitzrak...@gmail.com, erik.pilking...@gmail.com,
                    llvm-bugs@lists.llvm.org, richard-l...@metafoo.co.uk

For the following snippet, clang++ fails to compile, since 9.0. And it still
fails in the latest version 10.0.
`
template<class T>
struct X {
    template<int N>
    static constexpr auto value = N;
};

int main() {
    return X<int>::value<0>;
}
`

This is a serious bug, blocking our upgradation to clang 9/10.

-- 
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