[LLVMbugs] [Bug 8372] New: clang::DiagnosticInfo::getArgKind(unsigned int) fails assertion

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Oct 13 05:59:26 PDT 2010


           Summary: clang::DiagnosticInfo::getArgKind(unsigned int) fails
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: hans at chromium.org
                CC: llvmbugs at cs.uiuc.edu

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

More information about the llvm-bugs mailing list