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

             Bug #: 11630
           Summary: Clang fails to detect that two types are the same in a
                    template
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


clang fails to accept this:

template <class T>
struct S
{
  static const unsigned C = 1;
  static void f()
  {
    typedef int q[C == 1 ? 1 : -1];
    typedef int q[C >= 1 ? 1 : -1];
  }
};

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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