[llvm-bugs] [Bug 38077] New: Crash when accessing member of decltype of function template

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jul 5 23:54:25 PDT 2018


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

            Bug ID: 38077
           Summary: Crash when accessing member of decltype of function
                    template
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: violet.bugreport at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

The following program will cause a crash in every version(trunk, 6.0, 5.0) of
clang++ I tested:

template<class T> void bar() {}
int main() {
    decltype(bar)::does_not_exist;
}

Here is demo: https://wandbox.org/permlink/fEkAc6Ih6gXRssim

-- 
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/20180706/20fc8848/attachment.html>


More information about the llvm-bugs mailing list