Bug 7866 - ICE in g++ (resolve_overloaded_unification)
Summary: ICE in g++ (resolve_overloaded_unification)
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: gcc3.4-c++ (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Dmitry V. Levin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-05 10:01 MSD by avm
Modified: 2006-05-12 11:53 MSD (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description avm 2005-09-05 10:01:32 MSD
$ cat >ICE.cpp
#include <iostream>
template <class T> void foo(T t)
{
std::cerr << typeid(t).name; // This line is broken, of course
}

$ g++ ICE.cpp -c -o ICE.o
ICE.cpp: In function `void foo(T)':
ICE.cpp:4: internal compiler error: in resolve_overloaded_unification, at
cp/pt.c:9316
Please submit a full bug report,
with preprocessed source if appropriate.
...
$ g++ -v 2>&1 | tail -1
gcc version 3.4.4 20050526 (ALT Linux, build 3.4.4-alt1)
$ rpm -q gcc3.4-c++
gcc3.4-c++-3.4.4-alt1
Comment 1 avm 2006-05-12 11:50:38 MSD
Исправлено в 4.1.
Comment 2 avm 2006-05-12 11:53:28 MSD
Как неудобно, что нельзя сразу перевести баг из NEW в CLOSED.