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]

[egcs-19980608] Internal error in mistaken template usage.


The current snapshot continues to get an internal error on this code:

	template < typename T > struct s { };
	int main(int, char **) { s< char > a = s(); }

I came across this bug when I accidentally tried to create an
istream_iterator using istream_iterator(), forgetting that it's
templated by the retrieved object type - I should have used
istream_iterator< char >().


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