致命错误C1001:INTERNAL COMPILER ERROR(编译器文件'msc1.cpp',第2701行) [英] fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701)
问题描述
您好
我正在使用最新版本的Visual Studio 2003版本7.1.3088,.net framework 1.1.4322我在编译项目时遇到了一些问题,它给了我错误
c:\ build \\\\ ..... \methodeInc.h(36):致命错误C1001:内部编译器错误>
(编译文件''msc1.cpp'',第2701行)
请在Visual C ++
帮助菜单上选择技术支持命令,或打开技术支持帮助文件以获取更多信息
我能用这个非常小的例子重现行为,希望它能帮助你修复编译器
class
int i
public
B(int f):i(f){}
}
typedef B TB
class TB; < --------那是导致编译器错误的行
最好的问候
- mn
Hello
I''m using the latest version of Visual Studio 2003 version 7.1.3088, .net framework 1.1.4322 and I''ve some problem compiling a project, it give me the error
c:\build\main\.....\methodeInc.h(36) : fatal error C1001: INTERNAL COMPILER ERRO
(compiler file ''msc1.cpp'', line 2701)
Please choose the Technical Support command on the Visual C++
Help menu, or open the Technical Support help file for more informatio
I was able to reproduce the behaviour with this very little example, hope it helps you to fix the compiler
class
int i
public
B(int f) : i(f) {}
}
typedef B TB
class TB; <-------- that''s the line that cause the compiler erro
Best Regards
- mn
推荐答案
Marco Nova< no ******* @ removethis.hotmail.com>写道:
Marco Nova <no*******@removethis.hotmail.com> wrote:
[...]
我能用这个非常小的例子重现行为,希望它可以帮助你修复编译器。
类B
{
int i;
公开:
B(int f):i(f){};
};
typedef B TB;
class TB; < --------那是导致编译错误的行
有趣。我发现,对于VC7.1,这个
就足够了:
B级;
typedef B TB;
类TB;
我在这里安装了Whidbey,所以我不知道
是否已经修复了。
最诚挚的问候,
- mn
[...]
I was able to reproduce the behaviour with this very little example, hope it helps you to fix the compiler.
class B
{
int i;
public:
B(int f) : i(f) {};
};
typedef B TB;
class TB; <-------- that''s the line that cause the compiler error
Interesting. I found that, for VC7.1, this
is enough:
class B;
typedef B TB;
class TB;
I have Whidbey installed here, so I don''t
know whether that''s already fixed.
Best Regards,
- mn
Schobi
-
Sp******@gmx.de 永远不会被阅读
我是Schobi at suespammers dot org
有时编译器比人们更合理。
Scott Meyers >
Hendrik Schober< Sp ****** @ gmx.de>写道:
Hendrik Schober <Sp******@gmx.de> wrote:
[...]
我在这里安装了Whidbey [...]
[...]
I have Whidbey installed here [...]
Er ,我没有。
Schobi
-
Sp ****** @ gmx.de 永远不会被读取
我是Schobi at suespammers dot org
有时编译器比人们更合理。
Scott Meyers
Er, I don''t have.
Schobi
--
Sp******@gmx.de is never read
I''m Schobi at suespammers dot org
"Sometimes compilers are so much more reasonable than people."
Scott Meyers
Hendrik Schober写道:
Hendrik Schober wrote:
Marco Nova< no ******* @ removethis.hotmail.com>写道:
Marco Nova <no*******@removethis.hotmail.com> wrote:
[...]
我能用这个非常小的例子重现行为,
希望它可以帮助你修复编译器。
B级
{
int i;
公开:
B(int f):i(f){};
};
typedef B TB;
class TB; < --------那是导致
编译器错误的行
[...]
I was able to reproduce the behaviour with this very little example,
hope it helps you to fix the compiler.
class B
{
int i;
public:
B(int f) : i(f) {};
};
typedef B TB;
class TB; <-------- that''s the line that cause the
compiler error
有意思。我发现,对于VC7.1,这个就足够了:
B类;
typedef B TB;
class TB;
Interesting. I found that, for VC7.1, this
is enough:
class B;
typedef B TB;
class TB;
>
代码当然是非法的。其中一个分支是,修复编译器以提供更好的错误消息是一个低优先级的修复。
我可以报告,这个特殊的ICE实际上已经修复了
Whidbey。
-cd
The code is, of course, illegal. One ramification of that is that fixing
the compiler to give a better error message is a low priority fix.
I can report, however, that this particular ICE has in fact been fixed in
Whidbey.
-cd
这篇关于致命错误C1001:INTERNAL COMPILER ERROR(编译器文件'msc1.cpp',第2701行)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!