[LLVMbugs] [Bug 16617] New: clang runtime error when compiled with visual studio 2013 preview
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Sat Jul 13 08:08:10 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16617
Bug ID: 16617
Summary: clang runtime error when compiled 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: frozen000777 at hotmail.com
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 foo()
{
}
C:\clang13\build\bin\Debug>clang -v -c test.cpp
clang version 3.4 (trunk)
Target: i686-pc-win32
Thread model: posix
"C:\clang13\build\bin\Debug\clang.exe" -cc1 -triple i686-pc-win32 -emit-obj
-mr
elax-all -disable-free -main-file-name test.cpp -mrelocation-model static
-mdisa
ble-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -target-cpu
pentium
4 -v -coverage-file test.o -resource-dir
"C:\\clang13\\build\\bin\\Debug\\..\\li
b\\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\\\\include" -std=c++11 -fdeprecated-macro -ferror-limit 19
-fmessage-length
80 -mstackrealign -fms-extensions -fms-compatibility -fmsc-version=1300
-fdelay
ed-template-parsing -fobjc-runtime=gcc -fobjc-default-synthesize-properties
-fcx
x-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics
-vectori
ze-loops -o test.o -x c++ test.cpp
clang -cc1 version 3.4 based upon LLVM 3.4svn default target i686-pc-win32
#include "..." search starts here:
#include <...> search starts here:
C:\clang13\build\bin\Debug\..\lib\clang\3.4\include
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include
C:\Program Files (x86)\Windows Kits\8.1\\include
End of search list.
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 ';'
0x6D07146A (0x0000000A 0x00000000 0x0434CC1C 0x6D149954), memcmp() + 0xABA
bytes
(s)
0x6D15B0DC (0x0434CC80 0x0434CC30 0x00000094 0x00000000), abort() + 0x1C
bytes(s
)
0x6D149954 (0x035C99F8 0x03584ED0 0x000000F8 0x0434E5CC), _wassert() + 0xD4
byte
s(s)
0x029ACCD1 (0x03DFC9BC 0x045631E0 0x0434CC80 0x0298A9C5),
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)
0x029EDA9C (0x0434D3A8 0x0434E5CC 0xCCCCCCCC 0xCCCCCCCC),
clang::RecordDecl::get
PreviousDecl() + 0x1C bytes(s),
c:\clang13\llvm\tools\clang\include\clang\ast\de
cl.h, line 2925 + 0xE byte(s)
0x0298A9C5 (0x0434CCB4 0x045631E0 0x0434E5CC 0x04559808),
clang::ASTContext::get
TypeDeclTypeSlow() + 0x115 bytes(s),
c:\clang13\llvm\tools\clang\lib\ast\astcont
ext.cpp, line 2922 + 0x8 byte(s)
0x017518A9 (0x0434CCB4 0x045631E0 0x00000000 0x04533D28),
clang::ASTContext::get
TypeDeclType() + 0xC9 bytes(s),
c:\clang13\llvm\tools\clang\include\clang\ast\as
tcontext.h, line 1007 + 0x10 byte(s)
0x02944E50 (0x04559808 0x00000003 0x04562ED4 0x00000326),
clang::CXXRecordDecl::
Create() + 0xB0 bytes(s), c:\clang13\llvm\tools\clang\lib\ast\declcxx.cpp, line
95
0x01B9CE9B (0x04584318 0x00000012 0x00000001 0x00000326),
clang::Sema::ActOnTag(
) + 0x1AEB bytes(s), c:\clang13\llvm\tools\clang\lib\sema\semadecl.cpp, line
102
98 + 0x35 byte(s)
0x01B1288B (0x0000007C 0x00000326 0x0434DFB0 0x0434DF34),
clang::Parser::ParseCl
assSpecifier() + 0x159B bytes(s),
c:\clang13\llvm\tools\clang\lib\parse\parsedec
lcxx.cpp, line 1578 + 0x9A byte(s)
0x01ACAD82 (0x0434DFB0 0x0434DF34 0x00000003 0x00000004),
clang::Parser::ParseDe
clarationSpecifiers() + 0x1692 bytes(s),
c:\clang13\llvm\tools\clang\lib\parse\p
arsedecl.cpp, line 2997
0x01AAF658 (0x0434E4F0 0x0434E504 0x0434DFB0 0x00000003),
clang::Parser::ParseDe
clOrFunctionDefInternal() + 0x38 bytes(s),
c:\clang13\llvm\tools\clang\lib\parse
\parser.cpp, line 850
0x01AAF5A9 (0x0434E4F0 0x0434E504 0x00000000 0x00000003),
clang::Parser::ParseDe
clarationOrFunctionDefinition() + 0x89 bytes(s),
c:\clang13\llvm\tools\clang\lib
\parse\parser.cpp, line 912 + 0x1B byte(s)
0x01AAEFAC (0x0434E4F0 0x0434E504 0x00000000 0x0434E5BC),
clang::Parser::ParseEx
ternalDeclaration() + 0x93C bytes(s),
c:\clang13\llvm\tools\clang\lib\parse\pars
er.cpp, line 777 + 0x16 byte(s)
0x01AAC0DA (0x0434E574 0x0434E83C 0x0434E5CC 0x04581818),
clang::Parser::ParseTo
pLevelDecl() + 0x13A bytes(s),
c:\clang13\llvm\tools\clang\lib\parse\parser.cpp,
line 582 + 0x12 byte(s)
0x01AA9D3A (0x04580568 0x00000000 0x00000000 0x0434E844), clang::ParseAST() +
0x
11A bytes(s), c:\clang13\llvm\tools\clang\lib\parse\parseast.cpp, line 134 +
0xC
byte(s)
0x0196D28D (0x0434E8C0 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)
0x016E02EB (0x0434E86C 0xCCCCCCCC 0xCCCCCCCC 0xCCCCCCCC),
clang::CodeGenAction::
ExecuteAction() + 0x33B bytes(s),
c:\clang13\llvm\tools\clang\lib\codegen\codege
naction.cpp, line 437
0x0196CECC (0x0434E95C 0x0434F978 0xCCCCCCCC 0xCCCCCCCC),
clang::FrontendAction:
:Execute() + 0xAC bytes(s),
c:\clang13\llvm\tools\clang\lib\frontend\frontendact
ion.cpp, line 378 + 0xF byte(s)
0x019582A1 (0x04537EF8 0x0434EEBC 0xCCCCCCCC 0xCCCCCCCC),
clang::CompilerInstanc
e::ExecuteAction() + 0x281 bytes(s),
c:\clang13\llvm\tools\clang\lib\frontend\co
mpilerinstance.cpp, line 702
0x01699BD8 (0x045338B8 0x0434FDAC 0xCCCCCCCC 0xCCCCCCCC),
clang::ExecuteCompiler
Invocation() + 0x308 bytes(s),
c:\clang13\llvm\tools\clang\lib\frontendtool\exec
utecompilerinvocation.cpp, line 237 + 0x11 byte(s)
0x0048F590 (0x0434F980 0x0434FA44 0x0452F010 0x003E131B), cc1_main() + 0x2F0
byt
es(s), c:\clang13\llvm\tools\clang\tools\driver\cc1_main.cpp, line 100 + 0xE
byt
e(s)
0x0047DF99 (0x00000033 0x0452EA20 0x0452A260 0x607C5AFB), main() + 0x149
bytes(s
), c:\clang13\llvm\tools\clang\tools\driver\driver.cpp, line 359 + 0x45 byte(s)
0x02799FB9 (0x0434FE10 0x7539850D 0x7E864000 0x0434FE54), __tmainCRTStartup() +
0x199 bytes(s), f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c, line 617 + 0x19
byte
(s)
0x0279A0FD (0x7E864000 0x0434FE54 0x77D7BF39 0x7E864000), mainCRTStartup() +
0xD
bytes(s), f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c, line 457
0x7539850D (0x7E864000 0x139978B9 0x00000000 0x00000000), BaseThreadInitThunk()
+ 0xE bytes(s)
0x77D7BF39 (0x0279A0F0 0x7E864000 0xFFFFFFFF 0x77DF1DF7),
RtlInitializeException
Chain() + 0x85 bytes(s)
0x77D7BF0C (0x0279A0F0 0x7E864000 0x00000000 0x00000000),
RtlInitializeException
Chain() + 0x58 bytes(s)
clang.exe: error: clang frontend command failed due to signal (use -v to see
inv
ocation)
clang version 3.4 (trunk)
Target: i686-pc-win32
Thread model: posix
clang.exe: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/b
ugs/ and include the crash backtrace, preprocessed source, and associated run
sc
ript.
clang.exe: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang.exe: note: diagnostic msg:
C:\Users\win8\AppData\Local\Temp\test-745ef3.cp
p
clang.exe: note: diagnostic msg:
C:\Users\win8\AppData\Local\Temp\test-745ef3.sh
clang.exe: note: diagnostic msg:
********************
C:\clang13\build\bin\Debug>
--
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/20130713/bb491b38/attachment.html>
More information about the llvm-bugs
mailing list