Skip to content

Instantly share code, notes, and snippets.

@degski
Created May 6, 2019 13:19
Show Gist options
  • Save degski/59a2f97ada1e7a651db4939237869f68 to your computer and use it in GitHub Desktop.
Save degski/59a2f97ada1e7a651db4939237869f68 to your computer and use it in GitHub Desktop.
Clang bug 41745-2
# Crash reproducer for clang version 9.0.0 (trunk)
# Driver args: "--driver-mode=cl" "-c" "-I" "y:\\vcpkg\\installed\\x64-windows-static\\include" "/nologo" "-Wall" "-Wno-error" "/diagnostics:classic" "/Ox" "/Oi" "-D" "WIN64" "-D" "NDEBUG" "-D" "_CONSOLE" "-D" "NOMINMAX" "-D" "MPPP_BUILD_STATIC_LIBRARY" "-D" "MPPP_STATIC" "-D" "MPPP_PUBLIC=" "-D" "_UNICODE" "-D" "UNICODE" "/EHsc" "/MT" "/GS" "-ffunction-sections" "/arch:AVX2" "-ffast-math" "/permissive-" "/std:c++17" "/FoY:\\REPOS\\gmp_random\\x64\\Release\\" "/Gd" "/TP" "-m64" "main.cpp"
# Original command: "C:\\Program Files\\LLVM\\bin\\clang-cl.exe" "-cc1" "-triple" "x86_64-pc-windows-msvc19.16.27030" "-emit-obj" "-mincremental-linker-compatible" "-disable-free" "-main-file-name" "main.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-relaxed-aliasing" "-menable-no-infs" "-menable-no-nans" "-menable-unsafe-fp-math" "-fno-signed-zeros" "-mreassociate" "-freciprocal-math" "-fno-trapping-math" "-ffp-contract=fast" "-ffast-math" "-ffinite-math-only" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "haswell" "-mllvm" "-x86-asm-syntax=intel" "-D_MT" "-flto-visibility-public-std" "--dependent-lib=libcmt" "--dependent-lib=oldnames" "-stack-protector" "2" "-fcxx-exceptions" "-fexceptions" "-fexternc-nounwind" "-fms-volatile" "-fdefault-calling-conv=cdecl" "-fdiagnostics-format" "msvc" "-dwarf-column-info" "-momit-leaf-frame-pointer" "-ffunction-sections" "-coverage-notes-file" "Y:\\REPOS\\gmp_random\\gmp_random\\main.gcno" "-resource-dir" "C:\\Program Files\\LLVM\\lib\\clang\\9.0.0" "-I" "y:\\vcpkg\\installed\\x64-windows-static\\include" "-D" "WIN64" "-D" "NDEBUG" "-D" "_CONSOLE" "-D" "NOMINMAX" "-D" "MPPP_BUILD_STATIC_LIBRARY" "-D" "MPPP_STATIC" "-D" "MPPP_PUBLIC=" "-D" "_UNICODE" "-D" "UNICODE" "-internal-isystem" "C:\\Program Files\\LLVM\\lib\\clang\\9.0.0\\include" "-internal-isystem" "y:\\vc\\x64\\include" "-internal-isystem" "y:\\vc\\x64" "-internal-isystem" "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\include" "-internal-isystem" "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Tools\\MSVC\\14.16.27023\\atlmfc\\include" "-internal-isystem" "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\VC\\Auxiliary\\VS\\include" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.17763.0\\ucrt" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.17763.0\\um" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.17763.0\\shared" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.17763.0\\winrt" "-internal-isystem" "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.17763.0\\cppwinrt" "-internal-isystem" "Include\\um" "-O2" "-Wall" "-Wno-error" "-fdeprecated-macro" "-fdebug-compilation-dir" "Y:\\REPOS\\gmp_random\\gmp_random" "-ferror-limit" "19" "-fmessage-length" "0" "-fno-use-cxa-atexit" "-fms-extensions" "-fms-compatibility" "-fms-compatibility-version=19.16.27030" "-std=c++17" "-fdelayed-template-parsing" "-fobjc-runtime=gcc" "-fno-caret-diagnostics" "-fdiagnostics-show-option" "-fno-show-column" "-vectorize-loops" "-vectorize-slp" "-o" "Y:\\REPOS\\gmp_random\\x64\\Release\\main.obj" "-x" "c++" "main.cpp" "-faddrsig"
"C:\\Program Files\\LLVM\\bin\\clang-cl.exe" "-cc1" "-triple" "x86_64-pc-windows-msvc19.16.27030" "-emit-obj" "-mincremental-linker-compatible" "-disable-free" "-main-file-name" "main.cpp" "-mrelocation-model" "pic" "-pic-level" "2" "-mthread-model" "posix" "-relaxed-aliasing" "-menable-no-infs" "-menable-no-nans" "-menable-unsafe-fp-math" "-fno-signed-zeros" "-mreassociate" "-freciprocal-math" "-fno-trapping-math" "-ffp-contract=fast" "-ffast-math" "-ffinite-math-only" "-masm-verbose" "-mconstructor-aliases" "-munwind-tables" "-target-cpu" "haswell" "-mllvm" "-x86-asm-syntax=intel" "-D_MT" "-flto-visibility-public-std" "--dependent-lib=libcmt" "--dependent-lib=oldnames" "-stack-protector" "2" "-fcxx-exceptions" "-fexceptions" "-fexternc-nounwind" "-fms-volatile" "-fdefault-calling-conv=cdecl" "-fdiagnostics-format" "msvc" "-dwarf-column-info" "-momit-leaf-frame-pointer" "-ffunction-sections" "-coverage-notes-file" "Y:\\REPOS\\gmp_random\\gmp_random\\main.gcno" "-D" "WIN64" "-D" "NDEBUG" "-D" "_CONSOLE" "-D" "NOMINMAX" "-D" "MPPP_BUILD_STATIC_LIBRARY" "-D" "MPPP_STATIC" "-D" "MPPP_PUBLIC=" "-D" "_UNICODE" "-D" "UNICODE" "-O2" "-Wall" "-Wno-error" "-fdeprecated-macro" "-ferror-limit" "19" "-fmessage-length" "0" "-fno-use-cxa-atexit" "-fms-extensions" "-fms-compatibility" "-fms-compatibility-version=19.16.27030" "-std=c++17" "-fdelayed-template-parsing" "-fobjc-runtime=gcc" "-fno-caret-diagnostics" "-fdiagnostics-show-option" "-fno-show-column" "-vectorize-loops" "-vectorize-slp" "-x" "c++" "main-469827.cpp" "-faddrsig"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment