[llvm-bugs] [Bug 46063] New: Fail to deduce const auto templated variable

via llvm-bugs llvm-bugs at lists.llvm.org
Mon May 25 01:41:28 PDT 2020


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: unassignedclangbugs at nondot.org
          Reporter: gdutor at gmail.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200525/9d52b2a5/attachment-0001.html>


More information about the llvm-bugs mailing list