[LLVMbugs] [Bug 16634] New: clang always crash, isa<T> and cast_or_numll doesn't compatible with visual studio 2013 preview ?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jul 16 08:59:41 PDT 2013


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

            Bug ID: 16634
           Summary: clang always crash, isa<T> and cast_or_numll doesn't
                    compatible with visual studio 2013 preview ?
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: liteon777 at hanmail.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

1. cmake -g "visual studio 12" ../llvm
2. compile with visual studio 2013 preview
3. clang -v -c test.cpp

<test.cpp>
void some_func()
{
}

Assertion failed: isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible
ty
pe!", file C:\clang13\llvm\include\llvm/Support/Casting.h, line 248
Stack dump:
0.      Program arguments: C:\clang13\build\bin\Debug\clang.exe -cc1 -triple
i68
6-pc-win32 -emit-obj -mrelax-all -disable-free -main-file-name test.cpp
-mreloca
tion-model static -mdisable-fp-elim -fmath-errno -masm-verbose
-mconstructor-ali
ases -target-cpu pentium4 -v -coverage-file test.o -resource-dir
C:\clang13\buil
d\bin\Debug\..\lib\clang\3.4 -internal-isystem
C:\clang13\build\bin\Debug\..\lib
\clang\3.4\include -internal-isystem C:\Program Files (x86)\Microsoft Visual
Stu
dio 12.0\VC\include -internal-isystem C:\Program Files (x86)\Windows
Kits\8.1\\i
nclude -std=c++11 -fdeprecated-macro -ferror-limit 19 -fmessage-length 80
-mstac
krealign -fms-extensions -fms-compatibility -fmsc-version=1300
-fdelayed-templat
e-parsing -fobjc-runtime=gcc -fobjc-default-synthesize-properties
-fcxx-exceptio
ns -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
-
o test.o -x c++ test.cpp
1.      <built-in>:28:16: current parser token ';'
0x6208146A (0x0000000A 0x00000000 0x04CFCA98 0x62159954), memcmp() + 0xABA
bytes
(s)
0x6216B0DC (0x04CFCAFC 0x04CFCAAC 0x00000094 0x00000000), abort() + 0x1C
bytes(s
)
0x62159954 (0x03F731F0 0x03F2E000 0x000000F8 0x04CFE448), _wassert() + 0xD4
byte
s(s)
0x03353961 (0x047AA13C 0x050331E0 0x04CFCAFC 0x03331415),
llvm::cast_or_null<cla
ng::RecordDecl,clang::TagDecl const >() + 0x41 bytes(s),
c:\clang13\llvm\include
\llvm\support\casting.h, line 248 + 0x33 byte(s)
0x0339472C (0x04CFD224 0x04CFE448 0xCCCCCCCC 0xCCCCCCCC),
clang::RecordDecl::get
PreviousDecl() + 0x1C bytes(s),
c:\clang13\llvm\tools\clang\include\clang\ast\de
cl.h, line 2938 + 0xE byte(s)
0x03331415 (0x04CFCB30 0x050331E0 0x04CFE448 0x05029808),
clang::ASTContext::get
TypeDeclTypeSlow() + 0x115 bytes(s),
c:\clang13\llvm\tools\clang\lib\ast\astcont
ext.cpp, line 2900 + 0x8 byte(s)
0x020F7689 (0x04CFCB30 0x050331E0 0x00000000 0x05003D28),
clang::ASTContext::get
TypeDeclType() + 0xC9 bytes(s),
c:\clang13\llvm\tools\clang\include\clang\ast\as
tcontext.h, line 1007 + 0x10 byte(s)
0x032EB9C0 (0x05029808 0x00000003 0x05032ED4 0x00000326),
clang::CXXRecordDecl::
Create() + 0xB0 bytes(s), c:\clang13\llvm\tools\clang\lib\ast\declcxx.cpp, line
95
0x02542F4B (0x05054318 0x00000012 0x00000001 0x00000326),
clang::Sema::ActOnTag(
) + 0x1AEB bytes(s), c:\clang13\llvm\tools\clang\lib\sema\semadecl.cpp, line
103
03 + 0x35 byte(s)
0x024B892B (0x0000007C 0x00000326 0x04CFDE2C 0x04CFDDB0),
clang::Parser::ParseCl
assSpecifier() + 0x159B bytes(s),
c:\clang13\llvm\tools\clang\lib\parse\parsedec
lcxx.cpp, line 1578 + 0x9A byte(s)
0x02470E22 (0x04CFDE2C 0x04CFDDB0 0x00000003 0x00000004),
clang::Parser::ParseDe
clarationSpecifiers() + 0x1692 bytes(s),
c:\clang13\llvm\tools\clang\lib\parse\p
arsedecl.cpp, line 2997
0x024556F8 (0x04CFE36C 0x04CFE380 0x04CFDE2C 0x00000003),
clang::Parser::ParseDe
clOrFunctionDefInternal() + 0x38 bytes(s),
c:\clang13\llvm\tools\clang\lib\parse
\parser.cpp, line 850
0x02455649 (0x04CFE36C 0x04CFE380 0x00000000 0x00000003),
clang::Parser::ParseDe
clarationOrFunctionDefinition() + 0x89 bytes(s),
c:\clang13\llvm\tools\clang\lib
\parse\parser.cpp, line 912 + 0x1B byte(s)
0x0245504C (0x04CFE36C 0x04CFE380 0x00000000 0x04CFE438),
clang::Parser::ParseEx
ternalDeclaration() + 0x93C bytes(s),
c:\clang13\llvm\tools\clang\lib\parse\pars
er.cpp, line 777 + 0x16 byte(s)
0x0245217A (0x04CFE3F0 0x04CFE6B8 0x04CFE448 0x05051818),
clang::Parser::ParseTo
pLevelDecl() + 0x13A bytes(s),
c:\clang13\llvm\tools\clang\lib\parse\parser.cpp,
 line 582 + 0x12 byte(s)
0x0244FDDA (0x05050568 0x00000000 0x00000000 0x04CFE6C0), clang::ParseAST() +
0x
11A bytes(s), c:\clang13\llvm\tools\clang\lib\parse\parseast.cpp, line 134 +
0xC
 byte(s)
0x0231333D (0x04CFE73C 0xCCCCCCCC 0xCCCCCCCC 0xCCCCCCCC),
clang::ASTFrontendActi
on::ExecuteAction() + 0xED bytes(s),
c:\clang13\llvm\tools\clang\lib\frontend\fr
ontendaction.cpp, line 474 + 0x30 byte(s)
0x02085E7B (0x04CFE6E8 0xCCCCCCCC 0xCCCCCCCC 0xCCCCCCCC),
clang::CodeGenAction::
ExecuteAction() + 0x33B bytes(s),
c:\clang13\llvm\tools\clang\lib\codegen\codege
naction.cpp, line 441
0x02312F7C (0x04CFE7D8 0x04CFF7F4 0xCCCCCCCC 0xCCCCCCCC),
clang::FrontendAction:
:Execute() + 0xAC bytes(s),
c:\clang13\llvm\tools\clang\lib\frontend\frontendact
ion.cpp, line 378 + 0xF byte(s)
0x022FE361 (0x05007EF8 0x04CFED38 0xCCCCCCCC 0xCCCCCCCC),
clang::CompilerInstanc
e::ExecuteAction() + 0x281 bytes(s),
c:\clang13\llvm\tools\clang\lib\frontend\co
mpilerinstance.cpp, line 702
0x0203F708 (0x050038B8 0x04CFFC28 0xCCCCCCCC 0xCCCCCCCC),
clang::ExecuteCompiler
Invocation() + 0x308 bytes(s),
c:\clang13\llvm\tools\clang\lib\frontendtool\exec
utecompilerinvocation.cpp, line 237 + 0x11 byte(s)
0x00E2F7B0 (0x04CFF7FC 0x04CFF8C0 0x04FFF010 0x00D8131B), cc1_main() + 0x2F0
byt
es(s), c:\clang13\llvm\tools\clang\tools\driver\cc1_main.cpp, line 100 + 0xE
byt
e(s)
0x00E1E1B9 (0x00000033 0x04FFEA20 0x04FFA260 0x119FF980), main() + 0x149
bytes(s
), c:\clang13\llvm\tools\clang\tools\driver\driver.cpp, line 360 + 0x45 byte(s)
0x03140C79 (0x04CFFC8C 0x7583850D 0x7F2CF000 0x04CFFCD0), __tmainCRTStartup() +
0x199 bytes(s), f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c, line 617 + 0x19
byte
(s)
0x03140DBD (0x7F2CF000 0x04CFFCD0 0x77B8BF39 0x7F2CF000), mainCRTStartup() +
0xD
 bytes(s), f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c, line 457
0x7583850D (0x7F2CF000 0x62FE8080 0x00000000 0x00000000), BaseThreadInitThunk()
+ 0xE bytes(s)
0x77B8BF39 (0x03140DB0 0x7F2CF000 0xFFFFFFFF 0x77C01DF7),
RtlInitializeException
Chain() + 0x85 bytes(s)
0x77B8BF0C (0x03140DB0 0x7F2CF000 0x00000000 0x00000000),
RtlInitializeException
Chain() + 0x58 bytes(s)
clang.exe: error: clang frontend command failed with exit code 255 (use -v to
se
e invocation)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130716/aeb7bc4d/attachment.html>


More information about the llvm-bugs mailing list