g ++糟透了:内部编译错误??? [英] g++ sucks: internal compiler error???

查看:57
本文介绍了g ++糟透了:内部编译错误???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


请允许我与GNU g ++分享我的挫败感。这是第二次类似的事情发生在我身上:我找不到任何错误

我的C ++程序但是我得到了段错误,最终,这里是什么

发生了。任何人都有类似的经历。每当我写一个大班时,这个或类似的问题都会发生在我身上......

任何人都有类似的经历???


make

g ++ -c matrix.cpp -Wall -g

matrix.cpp:在成员函数中`void

Matrix :: computeDistShortest(bool)'':

matrix.cpp:189:内部编译器错误:在find_function_data中,

function.c:

313

如果合适,请提交一份完整的错误报告,

预处理来源。

请参阅< URL:http://bugzilla.redhat。 COM / bugzilla的>说明。

预处理源存储在/tmp/ccf7vSby.out文件中,请附上

这个到你的bug报告

make:*** [matrix.o]错误1

Hello,

Allow me to share my frustrations with GNU g++. This is the second
time something similar happens to me: I can''t find anything wrong with
my C++ program and yet I get segfaults, and eventually, here is what
happens. Anyone ever experience anything similar. This or similar
untrackable problems happen to me whenever I write a large class...
anyone have had similar experiences???

make
g++ -c matrix.cpp -Wall -g
matrix.cpp: In member function `void
Matrix::computeDistShortest(bool)'':
matrix.cpp:189: internal compiler error: in find_function_data, at
function.c:
313
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccf7vSby.out file, please attach
this to your bugreport
make: *** [matrix.o] Error 1

推荐答案

" Neil Zanella" < NZ ****** @ cs.mun.ca>在消息中写道

news:b6 ************************** @ posting.google.c om ...
"Neil Zanella" <nz******@cs.mun.ca> wrote in message
news:b6**************************@posting.google.c om...
您好,

请允许我与GNU g ++分享我的挫败感。这是第二次类似的事情发生在我身上:我用C ++程序找不到任何错误的
然而我得到了段错误,最终,这就是
发生的事情。任何人都有类似的经历。每当我写一个大班时,这个或类似的问题都会发生在我身上......
任何人都有类似的经历???
Hello,

Allow me to share my frustrations with GNU g++. This is the second
time something similar happens to me: I can''t find anything wrong with my C++ program and yet I get segfaults, and eventually, here is what
happens. Anyone ever experience anything similar. This or similar
untrackable problems happen to me whenever I write a large class...
anyone have had similar experiences???




1发布代码示例。

2.说出你使用的是什么版本的g ++。


所有编译器偶尔都会出现内部错误。如果您使用的是最近版本的

,那么您的代码中可能存在错误,而且b $ ++ g ++不知道如何诊断。尝试编译至少一个其他

编译器。当你发现g ++的绊倒,你或者这个团队中的某个人可能会找到一个解决方法。


Jonathan




" Neil Zanella" < NZ ****** @ cs.mun.ca>在消息中写道

news:b6 ************************** @ posting.google.c om ...

"Neil Zanella" <nz******@cs.mun.ca> wrote in message
news:b6**************************@posting.google.c om...
您好,

请允许我与GNU g ++分享我的挫败感。这是第二次类似的事情发生在我身上:我找不到我的C ++程序有什么问题,但我得到段错误


几乎可以肯定你的程序中的错误。当然,g ++并不是免费的,但它也不是
也不是一个有缺陷的程序。


他们对工具和坏工人的评价是什么?

,最终,这就是
发生的事情。任何人都有类似的经历。每当我写一个大班时,这个或类似的无法解决的问题都发生在我身上...


写小班。

任何人都有类似的经历???


仅适用于不同的编译器。在该编译器上,内部编译器错误

几乎总是在某些复杂的语言结构中表示语法错误。

在您的情况下,我会猜到一个非常大的类中的语法错误<可能是原因。
可能是原因。
make
g ++ -c matrix.cpp -Wall -g
matrix.cpp:在成员函数`void
Matrix :: computeDistShortest(bool)'':
matrix.cpp:189:内部编译器错误:在find_function_data中,
function.c:
313
Hello,

Allow me to share my frustrations with GNU g++. This is the second
time something similar happens to me: I can''t find anything wrong with
my C++ program and yet I get segfaults
Almost certainly bugs in your program. g++ isn''t bug free of course, but it
isn''t a buggy program either.

What is it they say about tools and bad workmen?
, and eventually, here is what
happens. Anyone ever experience anything similar. This or similar
untrackable problems happen to me whenever I write a large class...
Write smaller classes.
anyone have had similar experiences???

Only on a different compiler. On that compiler an internal compiler error
almost always indicated a syntax error in some complex language construct.
In your case I would guess some syntax error in an extremely large class
might be the cause.
make
g++ -c matrix.cpp -Wall -g
matrix.cpp: In member function `void
Matrix::computeDistShortest(bool)'':
matrix.cpp:189: internal compiler error: in find_function_data, at
function.c:
313




为什么不共享代码。没有它,没有人可以提供任何有用的帮助。然而,在
发布代码之前,请花些时间来删除导致错误的不是
的部分。这种有条不紊的方法可以帮助你

找出错误的原因,在这种情况下你会学到一些有价值的东西,如果它不是你那么至少会发布更少的

代码,更有可能获得帮助。


john



Why not share the code. No-one can offer any useful help without it. Before
posting the code however, take the time to cut out the parts that are not
contributing to the error. This sort of methodical approach might help you
figure out the cause of the error in which case you would have learned
something valuable, if it doesn''t then you at least will be posting less
code here and are more likely to get help.

john




" Jonathan Turkanis" < TE ****** @ kangaroologic.com>在留言中写道

news:c4 ************* @ ID-216073.news.uni-berlin.de ...

"Jonathan Turkanis" <te******@kangaroologic.com> wrote in message
news:c4*************@ID-216073.news.uni-berlin.de...
Neil Zanella < NZ ****** @ cs.mun.ca>在消息中写道
新闻:b6 ************************** @ posting.google.c om ...
"Neil Zanella" <nz******@cs.mun.ca> wrote in message
news:b6**************************@posting.google.c om...
Hello,


编译器。当你发现g ++的绊倒,你或者这个组中的某个
时,可能会找到一个解决方法。

compiler. When you find out what''s tripping up g++, you, or someone in this group, can probably find a workaround.




我的意思是如果它事实证明是g ++的真正问题,而不是你的代码




Jonathan



I mean IF it turns out to be a real problems with g++, and not with
your code.

Jonathan


这篇关于g ++糟透了:内部编译错误???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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