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: unassignedclangb...@nondot.org
          Reporter: sidney.cong...@gmail.com
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to