c++ - fatal error C1001 : An internal error has occurred in the compiler (compiler file 'msc1.cpp' , 第 1325 行)

标签 c++ visual-studio-2013

当我编译代码时,错误指向以下类。该错误在以下两行中突出显示: tm validFrom{}; tm validUntil{};

struct t_SslCertData final
{
    struct t_Contact
    {
        TCHAR Organization[256];
        TCHAR Unit[256];
        TCHAR CommonName[256];
        TCHAR Mail[256];
        TCHAR Country[256];
        TCHAR StateProvince[256];
        TCHAR Town[256];
        TCHAR Other[1024];
    } subject, issuer;



//Below are the lines where compiler highlights the error

    tm validFrom{};
    tm validUntil{};

    unsigned char hash[20];

    int verificationResult;
    int verificationDepth;

    int priv_data; //Internal data, do not modify
};

最佳答案

我在共享代码中没有看到任何错误,您应该转到“设置”并更改优化设置(如果可以,请禁用它)。此错误偶尔会发生。

关于c++ - fatal error C1001 : An internal error has occurred in the compiler (compiler file 'msc1.cpp' , 第 1325 行),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31957921/

相关文章:

c++ - 在类范围内获取虚方法的类型

git - Visual Studio 2013 和 Git 2.4

c++ - std::async 和对象复制

c++ - Qt3D,使用 QPickEvent 获取对象

c++ - 我可以以编程方式重新排序 wxDataViewCtrl 的列吗

c++ - 通过索引从 QML 中的 C++ 模型获取数据

c++ - 当您在 C++ 中使用 asm 代码操作寄存器时会发生什么情况?

c# - Resharper 多重属性生成

c++ - Visual Studio 调试器的奇怪行为; "The network location cannot be reached"(ERROR_NETWORK_UNREACHABLE)

windows-store-apps - Windows App 项目不支持应用程序