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]

Re: Member Template Instantiation bug in g++ 2.95.2


-----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-----


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