[Fw] Template friend function injection

T

tQtP8Ecy3dqNkbVp

Hi, I'd like to point out this post on the comp.lang.c++ newsgroup in
which I present some code that I've been told is perfectly legitimate
and standard-compliant. The problem I'm having with vc++ is that the
compiler crashes with a fatal internal error, specifically: "fatal
error C1001: An internal error has occurred in the compiler. (compiler
file 'msc1.cpp', line 1393)"

I've also forwarded this post to the g++/gcc newsgroups because even
gcc is having troubles with this code. Although it doesn't crashes, it
gives an error at linking time. The third and last compiler I tried
(and the only one which gets the job done) is Open Watcom which seems
to compile and link the code just fine (at least if I run the
executable, it works).

Post: http://groups.google.com/group/comp.lang.c++/browse_frm/thread/493afd501c807ffe#

Thanks.
 
T

tQtP8Ecy3dqNkbVp

I forgot to mention that I've tried this code on vc++ 8 and that
someone on the c++ newsgroup tried it on visualc++ 9 with the same
result.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top