[llvm-bugs] [Bug 31598] New: Clang-CL ICE with precompiled headers, export and parameter default initialization

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 10 08:00:55 PST 2017


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: unassignedclangbugs at nondot.org
          Reporter: steveire at gmail.com
                CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170110/eef0c5b9/attachment.html>


More information about the llvm-bugs mailing list