This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/8648: gcc -v -save-temps piece.ii


Synopsis: gcc -v -save-temps  piece.ii

State-Changed-From-To: feedback->closed
State-Changed-By: bangerth
State-Changed-When: Wed Nov 20 14:47:40 2002
State-Changed-Why:
    This is a reduced testcase:
    ---------------------------------
    struct X1 {};
    struct X2 {};
    struct X3 {};
    
    struct Y : public X3 {};
    
    template <typename T1, typename T2>
    struct Z : T1, T2 {
        Z (const X2 &);
    };
    
    template struct Z <X1, Y>;
    template <typename T1, typename T2>
    Z<T1,T2>::Z (const X2 &pos)
                    : X3 (pos)
    {}
    -----------------------------------
    It indeed kills 3.2. However, it is fixed in 3.2.1 and
    3.3 CVS. This is what I get with rather recent versions:
    
    tmp/g> /home/bangerth/bin/gcc-3.2/bin/c++ -c y.cc
    y.cc: In constructor `Z<T1, T2>::Z(const X2&) [with T1 = X1, T2 = Y]':
    y.cc:12:   instantiated from here
    y.cc:16: Internal compiler error in sort_base_init, at cp/init.c:598
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
    tmp/g>
    tmp/g>
    tmp/g>
    tmp/g> /home/bangerth/bin/gcc-3.2.1-pre/bin/c++ -c y.cc
    y.cc: In constructor `Z<T1, T2>::Z(const X2&) [with T1 = X1, T2 = Y]':
    y.cc:12:   instantiated from here
    y.cc:16: type `struct X3' is not a direct base of `Z<X1, Y>'
    tmp/g>
    tmp/g>
    tmp/g>
    tmp/g> /home/bangerth/bin/gcc-3.3x-pre/bin/c++ -c y.cc
    y.cc: In constructor `Z<T1, T2>::Z(const X2&) [with T1 = X1, T2 = Y]':
    y.cc:12:   instantiated from here
    y.cc:16: error: type `struct X3' is not a direct base of `Z<X1, Y>'

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8648


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]