Segmentation fault in cc1plus when compiling witty library
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro GCC |
Fix Released
|
Medium
|
Yao Qi | ||
gcc-4.4 (Ubuntu) |
Triaged
|
Medium
|
Unassigned | ||
gcc-4.5 (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: g++-4.4
Ubuntu 10.10 Beta AMD64
g++-4.4: 4.4.4-14ubuntu4
When compiling witty library (either a version from the repositories or the latest from their web site (wt-3.1.5)) gcc compiler crashes with segmentation fault.
The 4.5 version of the compiler does not crash.
Compiler output:
[ 0%] Building CXX object src/CMakeFiles/
In member function ‘void Wt::WAbstractAr
cc1plus: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/
make[2]: *** [src/CMakeFiles
make[1]: *** [src/CMakeFiles
make: *** [all] Error 2
Related branches
- Ulrich Weigand (community): Approve
-
Diff: 26 lines (+8/-0)2 files modifiedChangeLog.linaro (+6/-0)
gcc/c-common.c (+2/-0)
Changed in gcc-linaro: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
tags: | added: ice |
Changed in gcc-linaro: | |
assignee: | nobody → Yao Qi (yao-codesourcery) |
Changed in gcc-linaro: | |
status: | Confirmed → Fix Committed |
Isolated test case (fails to compile on the assert statement):
#include <cassert>
template <typename A>
assert( dynamic_ cast<T* >(target) );
struct Base {
template <typename T, typename V>
void foo(T* target, void (V::*method)())
{
}
};
struct C { void foo() {} };
int main() int>(). foo(&c, &C::foo);
{
C c;
Base<
return 0;
}