[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#192568: c++/10695: 2.95/3.2/3.3: ICE on alpha while building agistudio



rmurray@debian.org writes:

> g++ -c -pipe -Wall -W -g -D_REENTRANT -DQT_THREAD_SUPPORT -I/usr/include/qt3 -I/usr/include/qt -o wordsedit.o wordsedit.cpp
> wordsedit.cpp: In member function `void WordsEdit::merge_file()':
> wordsedit.cpp:620: Internal compiler error in dwarf2out_frame_debug_expr, at dwarf2out.c:1328
> Please submit a full bug report,

This is acually a bug in the Debian package, because the file isn't
compiled with -O2 as policy mandates, and the error only occurs at -O0
;)

Here's a test case:

struct WordList {
    char c[320000];
};

void merge(struct WordList);

void merge_file()
{
    struct WordList w;
    merge(w);
}

The problem is still there in g++ 3.4 20030423. It also occurs with
gcc -g.

The author should probably also consider not passing 320k large
structures by value...

-- 
	Falk



Reply to: