http://llvm.org/bugs/show_bug.cgi?id=18793

            Bug ID: 18793
           Summary: crash on parenthesized non-type template argument
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

This causes clang to assert in the parser:

template<typename T, T> struct S {};
template<typename T> int g(S<T, (T())> *);

Note that the parentheses around 'T()' are necessary here to avoid it being
parsed as a function type.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to