AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  bug with IBM compiler

    Posted Mon February 06, 2012 05:23 AM

    Originally posted by: SystemAdmin


    I found a bug with IBM xl compiler on AIX 6.1 version 11.01.0000.0006
    This is the test code:

    template <typename T>
    class B
    {
    public:
    B( T & t ):_t( t ) {}
    T & _t;
    typename T::type pippo;

    };

    template <typename T, typename U = int>
    class A
    {
    public:
    A():_b( *this ) {}
    typedef U type;
    B < T, U> > _b;
    };

    int main()
    {

    A <int> *a = new A<int>;
    B<A< int > > b(*a);

    return 0;
    }

    Is this the right place to post it?
    If no, could you tell me where should I post the bug?
    (I am not an IBM employee)

    Yours Sincerely,
    Nur Fadel

    Politecnico di Milano
    Italy