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

           Summary: clang::DiagnosticInfo::getArgKind(unsigned int) fails
                    assertion
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


template <int I> void Foo () { }

void Bar ()
{
  Foo <0x80000000> ();
}

triggers the following assert when trying to compile with Clang built from
trunk r116802:

/tmp/a.cc:5:8: warning: clang:
/work/llvm/tools/clang/lib/Basic/../../include/clang/Basic/Diagnostic.h:864:
clang::Diagnostic::ArgumentKind clang::DiagnosticInfo::getArgKind(unsigned int)
const: Assertion `Idx < getNumArgs() && "Argument index out of range!"' failed.

(Stack trace attached.)

This seems to be a regression from r116058, where the code compiles.

-- 
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