This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[egcs-19980608] Internal error in mistaken template usage.
- To: egcs-bugs at cygnus dot com
- Subject: [egcs-19980608] Internal error in mistaken template usage.
- From: Hyman Rosen <hymie at prolifics dot com>
- Date: Tue, 9 Jun 1998 16:18:50 -0400
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 >().