|
From: Tonal <to...@pr...> - 2009-07-28 09:05:15
|
OS Windows Vista Home Basic Ru + sp2
g++ (GCC) 4.4.0
GNU ld (GNU Binutils) 2.19
Code:
template <class T>
struct test_t {
int i;
test_t() : i(10) {}
char f() const {
char buf[this->i]; //internal compiler error: Segmentation fault
return buf[0];
}
};
int main() {
test_t<int> test;
test.f();
}
Console command:
> >g++ -c "ice_local_array.cpp"
Output:
ice_local_array.cpp: In member function 'char test_t<T>::f() const [with
T = int]':
ice_local_array.cpp:13: instantiated from here
ice_local_array.cpp:6: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Bug report 2821688
http://sourceforge.net/tracker/?func=detail&atid=102435&aid=2821688&group_id=2435
--
Alexandr N. Zamaraev
|