[llvm-bugs] [Bug 44616] New: Compiler crash on dependent type missing typename

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jan 22 00:54:08 PST 2020


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

            Bug ID: 44616
           Summary: Compiler crash on dependent type missing typename
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sidney.congard at gmail.com
                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

Possible duplicate of bug '16926'.

Clang crashes when instanciating a dependent type without writing 'typename'.
Crashes on Clang 3.0.0 as well as Clang trunk.

The invalid code:

template <class T>
struct bla {
    template <class U>
    using blo = U;
};

template <class T>
constexpr bool pred() {
    return /*typename*/ bla<T>::template blo<T>{};
}

int main() {
    return pred<int>();
}

-- 
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/20200122/fa2ebb3a/attachment.html>


More information about the llvm-bugs mailing list