Bug 20243

Summary: undefined reference to __gxx_personality_v0
Product: Sisyphus Reporter: Kachalov Anton <mouse>
Component: gcc4.4-c++Assignee: Gleb F-Malinovskiy <glebfm>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus
Severity: critical    
Priority: P3 CC: glebfm
Version: unstable   
Hardware: all   
OS: Linux   

Description Kachalov Anton 2009-05-31 13:28:49 MSD
$ cat a.cc 
struct some_type { int member; };

int main()
{
  sizeof(some_type::member);
  return 0;
}
$ gcc -std=c++0x  a.cc -o a
/tmp/.private/mouse/ccba5haq.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld returned 1 exit status

PS. Вопрос по ходу,
http://en.wikipedia.org/wiki/C%2B%2B0x
Тут написано про ещё две вкусности:
1. for (int x : my_array)
2. for_each (list.begin(), list.end(), [&](x) { ... });
В какой версии GCC планируются сие фичи? 4.5? Или в более поздней? И будет ли у нас бэкпорт этих фич?
Comment 1 Sir Raorn 2009-05-31 15:42:24 MSD
"g++ -std=c++0x a.cc -o a" работает.
Comment 2 Sir Raorn 2009-05-31 15:49:36 MSD
"gcc -std=c++0x a.cc -o a -lstdc++" тоже.