[LLVMbugs] [Bug 11630] New: Clang fails to detect that two types are the same in a template

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 20 16:51:54 PST 2011


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: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list