This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: Member Template Instantiation bug in g++ 2.95.2
- To: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Subject: Re: Member Template Instantiation bug in g++ 2.95.2
- From: Michael Burton <mburton at bioeng dot ucsd dot edu>
- Date: Tue, 30 May 2000 16:09:09 -0700
- cc: mburton at requiem dot yi dot org, bug-gcc at gnu dot org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Martin,
I just tried it on g++ 2.95.2 on an SGI irix machine with the same
results. Did you remember to comment out the line marked "BUG" before
compiling?
IRIX64 lawson 6.5 10181059 IP30
mburton@lawson.ucsd.edu(36): g++ gcc-bug.cc
gcc-bug.cc: In instantiation of `s1<int>':
gcc-bug.cc:34: instantiated from here
gcc-bug.cc:27: Internal compiler error.
gcc-bug.cc:27: Please submit a full bug report.
gcc-bug.cc:27: See
<URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
Here's a copy of the code again, with the appropriate line commented out
this time:
template <class T1>
struct s2 {
template <class T2> struct a {};
};
template <class T >
struct s1 {
typedef s2<T>::a<T> Op;
};
int main() {
//s2<int> x; // BUG internal compiler error without
// this line.
s1<int> z;
return 0;
}
Thanks,
- -Mike
- -------------------------------------------------------------------
Michael Burton Email: mcburton@bigfoot.com
Software Engineer Office: (650) 289-4636
MyCustoms.com Fax: (508) 632-8555
On Sat, 27 May 2000, Martin v. Loewis wrote:
> > This bug may already be well-known (I don't know how far along G++
> > has gotten in member template support), but I didn't see it listed
> > anywhere on the web pages or info pages.
>
> Thanks for your bug report. I can't reproduce it with 2.95.2 on
> i586-pc-linux-gnu. Could you please try this on another computer?
>
> Regards,
> Martin
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (IRIX)
Comment: Made with pgp4pine
iD8DBQE5NEoYietpEwfqeTARAjPhAJ9eHEgfOZ1o9RMOBJfWS1+ZvWkqaACfU0Eu
Sj9n3HL+SgS3shhlY1DpvnY=
=Wqj/
-----END PGP SIGNATURE-----