MSVC 2015 Update 2中的编译器崩溃 [英] Compiler crash in MSVC 2015 Update 2

查看:68
本文介绍了MSVC 2015 Update 2中的编译器崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在研究C ++反射库,主要是在Mac上的Clang中。我尝试在MSVC 2015社区版上进行编译,但遇到了一些问题。最新的Xcode 7.3似乎运行得很好。我有Travis单元测试,它们独立工作
,所有这些测试都传递给Clang和GCC。

Hi, I've been working on a C++ reflection library, mostly in Clang on a Mac. I tried compiling this on MSVC 2015 Community Edition and have had a few problems. The latest Xcode 7.3 seems to work just fine. I have Travis unit tests which work independently which all pass on Clang and GCC.

该库在Github上被称为Ponder。   https://github.com/billyquith/ponder/issues/6

The library is called Ponder, on Github.  https://github.com/billyquith/ponder/issues/6

我使用的是MSVC 2015社区更新1,这似乎有多个问题。我更新到Update 2并将问题简化为一个问题,其中传递了对数组的引用。我认为它与std :: function有关,因为
传递了它不喜欢的东西,导致编译器崩溃。 

I was using MSVC 2015 Community Update 1, and that seemed to have multiple problems. I updated to Update 2 and that reduced the problem to one issue, where a reference to an array is being passed around. I think it is related to std::function being passed something it doesn't like, causing the compiler to crash. 

因此,语法错误(但Clang和GCC工作),或者存在MSVC编译器错误,因为编译器崩溃。

So either the syntax is wrong (but Clang and GCC work), or there is an MSVC compiler bug, as the compiler crashes.

推荐答案

我使用的是MSVC 2015社区更新1,这似乎有很多问题。我更新到Update 2并将问题简化为一个问题,其中传递了对数组的引用。 我认为它与std :: function
相关,传递了它不喜欢的东西,导致编译器崩溃。

I was using MSVC 2015 Community Update 1, and that seemed to have multiple problems. I updated to Update 2 and that reduced the problem to one issue, where a reference to an array is being passed around. I think it is related to std::function being passed something it doesn't like, causing the compiler to crash.

毫无疑问,根据定义,这是一个错误,因为编译器永远不会崩溃。但是,您的描述太模糊,无法提供帮助。您是否能够将这一点压缩到编译器可重现崩溃的几行代码?

Undoubtedly this is a bug by definition, since the compiler should never crash. However, your description is much too vague to be helpful. Are you able to condense this down to a few lines of code where the compiler can reproducibly crash?


这篇关于MSVC 2015 Update 2中的编译器崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆