Funny compiler errors

I was trying to compile something and g++ gave me these useful errors:
sorry, unimplemented: unexpected ast of kind field_decl
confused by earlier errors, bailing out
It's the first time I see that a compiler is sorry and confused
I've never seen MSVC compiler be so humble :P

EDIT: In fact it's quite the opposite what with it's plethora of zealously imposed safe implementations of standard C functions...
Last edited on
What code do you have there? Let me try that.
I was trying to compile some file which included boost GIL, I get that error only with g++ 4.6 with --std=c++0x
It works with g++ 4.6 without C++0x and g++ 4.5 with or without C++0x enabled

The following reproduces the error:
1
2
3
4
5
6
7
8
template <typename T>
struct S {
    static T * P;
    T x;
};

template <typename T>
T * S<T>::P = &S<T>::x;
Topic archived. No new replies allowed.