<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Crash @clang::Sema::MarkFunctionReferenced"
   href="https://bugs.llvm.org/show_bug.cgi?id=34109">34109</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Crash @clang::Sema::MarkFunctionReferenced
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.0
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mh+llvm@glandium.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=18930" name="attach_18930" title="reduced testcase">attachment 18930</a> <a href="attachment.cgi?id=18930&action=edit" title="reduced testcase">[details]</a></span>
reduced testcase

After running creduce for <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - clang-cl crash building Firefox"
   href="show_bug.cgi?id=33997">bug 33997</a> with a script that was checking for
crashes, I ended up with a testcase that still crashed, but didn't crash the
same way as what I was trying to get a reduced testcase for.

#0 0x00000000016323da llvm::sys::PrintStackTrace(llvm::raw_ostream&)
(/home/ubuntu/clang/bin/clang-cl+0x16323da)
#1 0x00000000016307ce llvm::sys::RunSignalHandlers()
(/home/ubuntu/clang/bin/clang-cl+0x16307ce)
#2 0x000000000163090a SignalHandler(int)
(/home/ubuntu/clang/bin/clang-cl+0x163090a)
#3 0x00007fdce8815390 __restore_rt
(/lib/x86_64-linux-gnu/libpthread.so.0+0x11390)
#4 0x000000000263e1d7
clang::Sema::MarkFunctionReferenced(clang::SourceLocation,
clang::FunctionDecl*, bool) (/home/ubuntu/clang/bin/clang-cl+0x263e1d7)
#5 0x0000000002697dee clang::Sema::ActOnCXXDelete(clang::SourceLocation, bool,
bool, clang::Expr*) (/home/ubuntu/clang/bin/clang-cl+0x2697dee)
#6 0x000000000228767a clang::Parser::ParseCXXDeleteExpression(bool,
clang::SourceLocation) (/home/ubuntu/clang/bin/clang-cl+0x228767a)
#7 0x000000000227a2a2 clang::Parser::ParseCastExpression(bool, bool, bool&,
clang::Parser::TypeCastState, bool) (/home/ubuntu/clang/bin/clang-cl+0x227a2a2)
#8 0x000000000227c244 clang::Parser::ParseCastExpression(bool, bool,
clang::Parser::TypeCastState, bool) (/home/ubuntu/clang/bin/clang-cl+0x227c244)
#9 0x000000000227c2cc
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState)
(/home/ubuntu/clang/bin/clang-cl+0x227c2cc)
#10 0x000000000227c349
clang::Parser::ParseExpression(clang::Parser::TypeCastState)
(/home/ubuntu/clang/bin/clang-cl+0x227c349)
#11 0x00000000022c3f6f clang::Parser::ParseExprStatement()
(/home/ubuntu/clang/bin/clang-cl+0x22c3f6f)
#12 0x00000000022c17f7
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*,
clang::Parser::ParsedAttributesWithRange&)
(/home/ubuntu/clang/bin/clang-cl+0x22c17f7)
#13 0x00000000022c1a3e
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, clang::Parser::AllowedConstructsKind, clang::SourceLocation*)
(/home/ubuntu/clang/bin/clang-cl+0x22c1a3e)
#14 0x00000000022be4d9 clang::Parser::ParseCompoundStatementBody(bool)
(/home/ubuntu/clang/bin/clang-cl+0x22be4d9)
#15 0x00000000022c670e clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) (/home/ubuntu/clang/bin/clang-cl+0x22c670e)
#16 0x000000000223e2dd
clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&)
(/home/ubuntu/clang/bin/clang-cl+0x223e2dd)
#17 0x000000000223e09e
clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&)
(/home/ubuntu/clang/bin/clang-cl+0x223e09e)
#18 0x0000000002272801
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation,
clang::SourceLocation, clang::Parser::ParsedAttributesWithRange&, unsigned int,
clang::Decl*) (/home/ubuntu/clang/bin/clang-cl+0x2272801)
#19 0x0000000002274cf8
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext,
clang::Parser::ParsedAttributesWithRange&)
(/home/ubuntu/clang/bin/clang-cl+0x2274cf8)
#20 0x000000000225147a
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*)
(/home/ubuntu/clang/bin/clang-cl+0x225147a)
#21 0x0000000002235f16
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier)
(/home/ubuntu/clang/bin/clang-cl+0x2235f16)
#22 0x00000000022366b1
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) [clone .part.174]
(/home/ubuntu/clang/bin/clang-cl+0x22366b1)
#23 0x00000000022366df
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier)
(/home/ubuntu/clang/bin/clang-cl+0x22366df)
#24 0x000000000223d044
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) (/home/ubuntu/clang/bin/clang-cl+0x223d044)
#25 0x000000000223d9e1
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&)
(/home/ubuntu/clang/bin/clang-cl+0x223d9e1)
#26 0x00000000022327c3 clang::ParseAST(clang::Sema&, bool, bool)
(/home/ubuntu/clang/bin/clang-cl+0x22327c3)
#27 0x0000000001e32374 clang::CodeGenAction::ExecuteAction()
(/home/ubuntu/clang/bin/clang-cl+0x1e32374)
#28 0x0000000001b2b1ce clang::FrontendAction::Execute()
(/home/ubuntu/clang/bin/clang-cl+0x1b2b1ce)
#29 0x0000000001b00b26
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&)
(/home/ubuntu/clang/bin/clang-cl+0x1b00b26)
#30 0x0000000001bbfa1b
clang::ExecuteCompilerInvocation(clang::CompilerInstance*)
(/home/ubuntu/clang/bin/clang-cl+0x1bbfa1b)
#31 0x00000000009e6e68 cc1_main(llvm::ArrayRef<char const*>, char const*,
void*) (/home/ubuntu/clang/bin/clang-cl+0x9e6e68)
#32 0x000000000099308c main (/home/ubuntu/clang/bin/clang-cl+0x99308c)
#33 0x00007fdce7b2b830 __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x20830)
#34 0x00000000009e4295 _start (/home/ubuntu/clang/bin/clang-cl+0x9e4295)
Stack dump:
0.      Program arguments: /home/ubuntu/clang/bin/clang-cl -cc1 -triple
i686-pc-windows-msvc19.0.24213 -emit-obj -mincremental-linker-compatible
-disable-free -disable-llvm-verifier -discard-value-names -main-file-name
Unified_cpp_layout_style2.cpp -mrelocation-model static -mthread-model posix
-mdisable-fp-elim -relaxed-aliasing -fmath-errno -masm-verbose
-mconstructor-aliases -target-cpu pentium4 -target-feature +sse2 -D_MT -D_DLL
--dependent-lib=msvcrt --dependent-lib=oldnames -fno-rtti-data -stack-protector
2 -fms-volatile -fdiagnostics-format msvc -momit-leaf-frame-pointer
-debug-info-kind=limited -debugger-tuning=gdb -ffunction-sections
-fdata-sections -coverage-notes-file
z:\mozilla-central\obj-i686-pc-mingw32\layout\style\Unified_cpp_layout_style2.gcno
-D NDEBUG=1 -D TRIMMED=1 -D WIN32_LEAN_AND_MEAN -D _WIN32 -D WIN32 -D
_CRT_RAND_S -D CERT_CHAIN_PARA_HAS_EXTRA_FIELDS -D OS_WIN=1 -D _UNICODE -D
CHROMIUM_BUILD -D U_STATIC_IMPLEMENTATION -D UNICODE -D _WINDOWS -D _SECURE_ATL
-D COMPILER_MSVC -D STATIC_EXPORTABLE_JS_API -D MOZ_HAS_MOZGLUE -D
MOZILLA_INTERNAL_API -D IMPL_LIBXUL -D MOZILLA_CLIENT -D _HAS_EXCEPTIONS=0
-Wall -Wno-inline-new-delete -Wno-invalid-offsetof -Wno-microsoft-enum-value
-Wno-microsoft-include -Wno-unknown-pragmas -Wno-ignored-pragmas
-Wno-deprecated-declarations -Wno-invalid-noreturn
-Wno-inconsistent-missing-override -Wno-implicit-exception-spec-mismatch
-Wno-unused-local-typedef -Wno-ignored-attributes -fdeprecated-macro
-ferror-limit 19 -fmessage-length 0 -fms-extensions -fms-compatibility
-fms-compatibility-version=19.0.24213 -std=c++14 -fdelayed-template-parsing
-fobjc-runtime=gcc -fdiagnostics-show-option -vectorize-loops -vectorize-slp -x
c++ Unified_cpp_layout_style2-a81487.cpp 
1.      <eof> parser at end of file
2.      Unified_cpp_layout_style2-a81487.cpp:9:28: parsing struct/union/class
body '(anonymous)'
3.      Unified_cpp_layout_style2-a81487.cpp:10:36: parsing function body
'(anonymous class)::NS_CYCLE_COLLECTION_INNERCLASS'
4.      Unified_cpp_layout_style2-a81487.cpp:10:36: in compound statement
('{}')
./Unified_cpp_layout_style2-a81487.sh: line 4: 43431 Segmentation fault     
(core dumped) /home/ubuntu/clang/bin/clang-cl "-cc1" "-triple"
"i686-pc-windows-msvc19.0.24213" "-emit-obj" "-mincremental-linker-compatible"
"-disable-free" "-disable-llvm-verifier" "-discard-value-names"
"-main-file-name" "Unified_cpp_layout_style2.cpp" "-mrelocation-model" "static"
"-mthread-model" "posix" "-mdisable-fp-elim" "-relaxed-aliasing" "-fmath-errno"
"-masm-verbose" "-mconstructor-aliases" "-target-cpu" "pentium4"
"-target-feature" "+sse2" "-D_MT" "-D_DLL" "--dependent-lib=msvcrt"
"--dependent-lib=oldnames" "-fno-rtti-data" "-stack-protector" "2"
"-fms-volatile" "-fdiagnostics-format" "msvc" "-momit-leaf-frame-pointer"
"-debug-info-kind=limited" "-debugger-tuning=gdb" "-ffunction-sections"
"-fdata-sections" "-coverage-notes-file"
"z:\\mozilla-central\\obj-i686-pc-mingw32\\layout\\style\\Unified_cpp_layout_style2.gcno"
"-D" "NDEBUG=1" "-D" "TRIMMED=1" "-D" "WIN32_LEAN_AND_MEAN" "-D" "_WIN32" "-D"
"WIN32" "-D" "_CRT_RAND_S" "-D" "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS" "-D"
"OS_WIN=1" "-D" "_UNICODE" "-D" "CHROMIUM_BUILD" "-D" "U_STATIC_IMPLEMENTATION"
"-D" "UNICODE" "-D" "_WINDOWS" "-D" "_SECURE_ATL" "-D" "COMPILER_MSVC" "-D"
"STATIC_EXPORTABLE_JS_API" "-D" "MOZ_HAS_MOZGLUE" "-D" "MOZILLA_INTERNAL_API"
"-D" "IMPL_LIBXUL" "-D" "MOZILLA_CLIENT" "-D" "_HAS_EXCEPTIONS=0" "-Wall"
"-Wno-inline-new-delete" "-Wno-invalid-offsetof" "-Wno-microsoft-enum-value"
"-Wno-microsoft-include" "-Wno-unknown-pragmas" "-Wno-ignored-pragmas"
"-Wno-deprecated-declarations" "-Wno-invalid-noreturn"
"-Wno-inconsistent-missing-override" "-Wno-implicit-exception-spec-mismatch"
"-Wno-unused-local-typedef" "-Wno-ignored-attributes" "-fdeprecated-macro"
"-ferror-limit" "19" "-fmessage-length" "0" "-fms-extensions"
"-fms-compatibility" "-fms-compatibility-version=19.0.24213" "-std=c++14"
"-fdelayed-template-parsing" "-fobjc-runtime=gcc" "-fdiagnostics-show-option"
"-vectorize-loops" "-vectorize-slp" "-x" "c++"
"Unified_cpp_layout_style2-a81487.cpp"</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>