[LLVMbugs] [Bug 8296] New: Assertion `!Type.isNull() && "builtin va list type not initialized!"' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 4 12:24:44 PDT 2010


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

           Summary: Assertion `!Type.isNull() && "builtin va list type not
                    initialized!"' failed
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: grzegorz.dabrowski at gmail.com
                CC: llvmbugs at cs.uiuc.edu


clang version 2.9 (trunk 115541)
Target: i386-pc-linux-gnu
Thread model: posix


Test case:

extern "C" int vsnprintf(char *string, int size, char const *format,
__builtin_va_list ap);

void f() {
        vsnprintf(__null, 0, __null, __null);
}


Output:

clang: ASTContext.cpp:5287: clang::QualType DecodeTypeFromStr(char const *&,
clang::ASTContext &, ASTContext::GetBuiltinTypeError &, bool &, bool):
Assertion `!Type.isNull() && "builtin va list type not initialized!"' failed.
0  clang 0x0947b42b
Stack dump:
0.    Program arguments:
/home/stuff/download/SCM/llvm/Release+Asserts/bin/clang -cc1 -triple
i386-pc-linux-gnu -S -disable-free -main-file-name va.cpp -mrelocation-model
static -mdisable-fp-elim -mconstructor-aliases -target-cpu pentium4
-target-linker-version 2.20.51 -resource-dir
/home/stuff/download/SCM/llvm/Release+Asserts/lib/clang/2.9 -O0 -ferror-limit
19 -fmessage-length 158 -fexceptions -fgnu-runtime -fdiagnostics-show-option
-fcolor-diagnostics -o /tmp/cc-YJkhfG.s -x c++ tests-my/va.cpp 
1.    tests-my/va.cpp:4:44: current parser token ')'
2.    tests-my/va.cpp:3:10: parsing function body 'f'
3.    tests-my/va.cpp:3:10: in compound statement ('{}')
clang: error: clang frontend command failed due to signal 6 (use -v to see
invocation)

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