https://llvm.org/bugs/show_bug.cgi?id=31598
Bug ID: 31598 Summary: Clang-CL ICE with precompiled headers, export and parameter default initialization Product: clang Version: 3.9 Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: Driver Assignee: unassignedclangb...@nondot.org Reporter: steve...@gmail.com CC: llvm-bugs@lists.llvm.org Classification: Unclassified Using the 3.9.1 binary package for Windows from http://releases.llvm.org/download.html and the following sources, I get an ICE. It works with the MSVC CL.exe: c:\dev\tmp>type source_file.cpp #include "header_file.h" BoolValue::BoolValue(bool b) { } c:\dev\tmp>type header_file.h #pragma once struct __declspec(dllexport) BoolValue { BoolValue(bool b = false); }; c:\dev\tmp>"C:\Program Files\LLVM\msbuild-bin\CL.exe" /c /Ycheader_file.h /FI header_file.h source_file.cpp clang-cl.exe: error: clang frontend command failed due to signal (use -v to see invocation) clang version 3.9.1 (branches/release_39) Target: x86_64-pc-windows-msvc Thread model: posix It also works if I remove the __declspec(dllexport) or if I remove the '= false' from the header. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs