This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8648: gcc -v -save-temps piece.ii
- From: bangerth at dealii dot org
- To: Hermann at Kleier dot net, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 20 Nov 2002 22:47:41 -0000
- Subject: Re: c++/8648: gcc -v -save-temps piece.ii
- Reply-to: bangerth at dealii dot org, Hermann at Kleier dot net, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
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